/// <summary> /// Pauses the game and activates the pause panel. /// </summary> private void Pause() { songController.PauseSong(true); Time.timeScale = 0.0f; activatorController.PauseActivator(true); noteGenerator.PauseNotes(true); pausePanel.SetActive(true); }
private void setGameStatus(bool enabled) { if (enabled) { ScoreController.enabled = true; SongController.StartSong(); } else { ScoreController.enabled = false; SongController.PauseSong(); } }