Пример #1
0
 public static void QuitToMainMenu(bool overrideConfirm = false)
 {
     if (overrideConfirm)
     {
         _QuitToMainMenu();
         return;
     }
     UIEvents.ShowConfirmationPopup("Are You Sure You Want To Quit To Main Menu?\nAny Unsaved Progress Will Be Lost!", _QuitToMainMenu);
 }
Пример #2
0
 public static void StartNewGame(bool overrideConfirm = false)
 {
     if (overrideConfirm || isInMainMenuScene)
     {
         _StartNewGame();
         return;
     }
     UIEvents.ShowConfirmationPopup("Are You Sure You Want To Start A New Game?\nAny Unsaved Progress Will Be Lost!", _StartNewGame);
 }
Пример #3
0
        public static void LoadGame(int slot, bool overrideConfirm = false)
        {
            if (overrideConfirm || GameManager.isInMainMenuScene)
            {
                _LoadGame(slot);
                return;
            }
            string msg = "Are You Sure You Want Load Save Slot " + slot + "?\nAny Unsaved Progress Will Be Lost!";

            UIEvents.ShowConfirmationPopup(msg, () => _LoadGame(slot));
        }
Пример #4
0
        public static void QuitApplication(bool overrideConfirm = false)
        {
            if (overrideConfirm)
            {
                _QuitApplication();
                return;
            }

            string msg = "Are You Sure You Want To Quit To Desktop?";

            if (!isInMainMenuScene)
            {
                msg += "\nAny Unsaved Progress Will Be Lost!";
            }

            UIEvents.ShowConfirmationPopup(msg, _QuitApplication);
        }