Exemplo n.º 1
0
 public static void pause()
 {
     if (turnState != Turn.pause)
     {
         holdTurn            = turnState;
         turnState           = Turn.pause;
         Time.timeScale      = 0;
         Time.fixedDeltaTime = 0;
         GameDriver.PauseCubes();
         GameDriver.showMenuInterface();
     }
     else
     {
         print("Can't pause, game is already paused!");
     }
 }