Exemplo n.º 1
0
 public static void Quit()
 {
     if (!ReadyToQuit)
     {
         GameManager.Get.StartCoroutine(GameManager.Get.TryToQuitOverTime());
     }
     else
     {
         Manager.GameQuit();
     }
 }
Exemplo n.º 2
0
        public IEnumerator TryToQuitOverTime()
        {
            Debug.Log("Quitting over time");
            if (Profile.Get.HasCurrentGame && !Profile.Get.CurrentGame.HasBeenSavedRecently)
            {
                yield return(StartCoroutine(SpawnSaveGameDialog(true, false)));
            }

            if (ReadyToQuit)
            {
                Manager.GameQuit();
            }
            yield break;
        }