public void ReturnToMainMenu() { TimerPanel.SetPause(false); TimerPanel.UnsubscribeDelegates(); FMODPlayer.StopAllSounds(); SceneManager.LoadScene(0); }
public void BackToMenu() { FMODPlayer.StopAllSounds(); StopCoroutine(BackToMenuButtonAnimation()); TimerPanel.UnsubscribeDelegates(); TimerPanel.SetPause(false); SceneManager.LoadScene(0); }
public void NewGame() { SaveSystem.newGame = true; SaveSystem.ResetSaveData(); TranslationManager.UnsubscribeDelegates(); FMODPlayer.StopAllSounds(); FMODPlayer.Instance.Play("new game"); loadingPanel.Open("SampleScene"); }
public void Continue() { if (SaveSystem.CheckSaveDataExistence()) { SaveSystem.newGame = false; TranslationManager.UnsubscribeDelegates(); FMODPlayer.StopAllSounds(); FMODPlayer.Instance.Play("new game"); loadingPanel.Open("SampleScene"); } }