private void LateUpdate() { if (Keybinds.ExitMenu()) { if (settingsMenu.IsOpen) { settingsMenu.BackAndSaveSettings(); } else { UnPause(); } } }
private void Update() { if (Keybinds.ExitMenu() && !controlSchemeScreen.IsOpen) { if (sceneSelectMenu.IsOpen) { CloseSceneSelectMenu(); } else if (settingsMenu.IsOpen) { if (settingsMenu.BackAndSaveSettings()) { OpenTitleScreen(); } } else { OpenSettingsMenu(); } } }