private static void doPauseGame() { if (BoolPause.IsIn()) { GlobalMonoMgr.SetPauseType(MonoType.Unit); BattleCoroutineter.Pause(); SubBattleCoroutineter.Pause(); KinematicCharacterSystem.AutoSimulation = false; } else { GlobalMonoMgr.SetPauseType(MonoType.None); BattleCoroutineter.Resume(); SubBattleCoroutineter.Pause(); KinematicCharacterSystem.AutoSimulation = true; } }
public static void ResumeGame() { BoolPause.Reset(); doPauseGame(); }
// 停止游戏 public static void PauseGame(bool b) { BoolPause.Push(b); doPauseGame(); }