📜  unity 如何停止游戏 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:29.601000             🧑  作者: Mango

代码示例1
The most convenient method for pausing the game in Unity is by setting the game’s time scale to zero (Time.timeScale = 0), which effectively pauses all time based operations including movement, physics and animation. Setting the time scale to one again will return the game to its normal speed.