Exemplo n.º 1
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;
 }
Exemplo n.º 2
0
 public void Resume()
 {
     pauseMenuUI.SetActive(false);
     Time.timeScale = 1f;
     GameIsPaused   = false;
     GameSettings   = false;
     if (PlayerWaiting.WaitingPlayersDis)
     {
         WaitingPlayersUI.SetActive(true);
     }
     else if (WaitingTimeChrono.DecountDis)
     {
         DecountUI.SetActive(true);
     }
     else if (WaitingTimeChrono.TimerDis)
     {
         TimerUI.SetActive(true);
     }
 }