Exemple #1
0
 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;
     }
 }
Exemple #2
0
 public static void ResumeGame()
 {
     BoolPause.Reset();
     doPauseGame();
 }
Exemple #3
0
 // 停止游戏
 public static void PauseGame(bool b)
 {
     BoolPause.Push(b);
     doPauseGame();
 }