예제 #1
0
 // Pauses game and shows overlay
 public void Pause()
 {
     if (!gameIsPaused)
     {
         gameIsPaused   = true;
         Time.timeScale = 0.0f;
         interfaceController.ActivatePauseOverlay();
     }
     else
     {
         gameIsPaused   = false;
         Time.timeScale = 1.0f;
         interfaceController.DeactivatePauseOverlay();
     }
 }