Example #1
0
 /// <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);
 }
Example #2
0
 private void setGameStatus(bool enabled)
 {
     if (enabled)
     {
         ScoreController.enabled = true;
         SongController.StartSong();
     }
     else
     {
         ScoreController.enabled = false;
         SongController.PauseSong();
     }
 }