Пример #1
0
 public void ReturnToMainMenu()
 {
     TimerPanel.SetPause(false);
     TimerPanel.UnsubscribeDelegates();
     FMODPlayer.StopAllSounds();
     SceneManager.LoadScene(0);
 }
Пример #2
0
 public void BackToMenu()
 {
     FMODPlayer.StopAllSounds();
     StopCoroutine(BackToMenuButtonAnimation());
     TimerPanel.UnsubscribeDelegates();
     TimerPanel.SetPause(false);
     SceneManager.LoadScene(0);
 }
Пример #3
0
 public void NewGame()
 {
     SaveSystem.newGame = true;
     SaveSystem.ResetSaveData();
     TranslationManager.UnsubscribeDelegates();
     FMODPlayer.StopAllSounds();
     FMODPlayer.Instance.Play("new game");
     loadingPanel.Open("SampleScene");
 }
Пример #4
0
 public void Continue()
 {
     if (SaveSystem.CheckSaveDataExistence())
     {
         SaveSystem.newGame = false;
         TranslationManager.UnsubscribeDelegates();
         FMODPlayer.StopAllSounds();
         FMODPlayer.Instance.Play("new game");
         loadingPanel.Open("SampleScene");
     }
 }