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; }
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); } }