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); }
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); }
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)); }
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); }