コード例 #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
ファイル: GameState.cs プロジェクト: tiredamage42/UnityTools
        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);
        }