예제 #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
파일: MainMenu.cs 프로젝트: GDPUFRJ/Kingdom
 public void NewGame()
 {
     SaveSystem.newGame = true;
     SaveSystem.ResetSaveData();
     TranslationManager.UnsubscribeDelegates();
     FMODPlayer.StopAllSounds();
     FMODPlayer.Instance.Play("new game");
     loadingPanel.Open("SampleScene");
 }
예제 #4
0
파일: MainMenu.cs 프로젝트: GDPUFRJ/Kingdom
 public void Continue()
 {
     if (SaveSystem.CheckSaveDataExistence())
     {
         SaveSystem.newGame = false;
         TranslationManager.UnsubscribeDelegates();
         FMODPlayer.StopAllSounds();
         FMODPlayer.Instance.Play("new game");
         loadingPanel.Open("SampleScene");
     }
 }