예제 #1
0
 void Pause()
 {
     pauseMenuUI.SetActive(true);
     TimerUI.SetActive(false);
     DecountUI.SetActive(false);
     Time.timeScale = 0f;
     GameIsPaused   = true;
     GameSettings   = false;
 }
예제 #2
0
 void Pause()
 {
     pauseMenuUI.SetActive(true);
     TimerUI.SetActive(false);
     WaitingPlayersUI.SetActive(false);
     DecountUI.SetActive(false);
     Time.timeScale = 1f; // Changer la valeur pour le solo
     GameIsPaused   = true;
     GameSettings   = false;
 }
예제 #3
0
 public void Resume()
 {
     pauseMenuUI.SetActive(false);
     Time.timeScale = 1f;
     GameIsPaused   = false;
     GameSettings   = false;
     if (WaitingTimeSolo.DecountDis)
     {
         DecountUI.SetActive(true);
     }
     else if (WaitingTimeSolo.TimerDis)
     {
         TimerUI.SetActive(true);
     }
 }