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