void Pause() { pauseMenuUI.SetActive(true); TimerUI.SetActive(false); DecountUI.SetActive(false); Time.timeScale = 0f; GameIsPaused = true; GameSettings = false; }
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 (WaitingTimeSolo.DecountDis) { DecountUI.SetActive(true); } else if (WaitingTimeSolo.TimerDis) { TimerUI.SetActive(true); } }