Пример #1
0
 protected new void OnDestroy()
 {
     base.OnDestroy();
     if (DialogManager.Instance != null)
     {
         DialogManager.EndDialog();
     }
 }
Пример #2
0
 /// <summary>
 /// Returns to the main menu.
 /// </summary>
 public void ReturnToMainMenu()
 {
     Time.timeScale = 1;
     TransitionManager.MakeTransition("main_menu");
     pauseScreen.SetActive(false);
     DialogManager.EndDialog();
     paused = false;
 }