Example #1
0
 protected override void LateUpdate()
 {
     // Pausing
     if (Keybinds.EscapeDown() && !PauseMenu.IsPaused)
     {
         PauseMenu.Pause();
     }
     // Displaying Help Overlay
     if (Keybinds.ToggleHelpOverlay())
     {
         HUD.HelpOverlayController.Toggle();
     }
 }
Example #2
0
 private void Update()
 {
     if (Keybinds.EscapeDown())
     {
         if (settingsMenu.IsOpen)
         {
             settingsMenu.BackSettings();
         }
         else
         {
             UnPause();
         }
     }
 }
Example #3
0
 private void Update()
 {
     if (Keybinds.EscapeDown())
     {
         if (sceneSelectMenu.IsOpen)
         {
             sceneSelectMenu.CloseSceneSelect();
             //OpenMainMenu();
         }
         else if (settingsMenu.IsOpen)
         {
             settingsMenu.BackSettings();
         }
         else
         {
             settingsMenu.OpenSettings();
         }
     }
 }
Example #4
0
    void Update()
    {
        // Pausing
        if (Keybinds.EscapeDown() && !PauseMenu.IsPaused)
        {
            PauseMenu.Pause();
        }

        // On pressing COIN button
        if (Keybinds.WithdrawCoinDown() && lastCoinThrowTime + coinCooldown < Time.time)
        {
            lastCoinThrowTime = Time.time;
            // If jump button had also been held, throw coin downward and target it.
            //if (Keybinds.Jump()) {
            //    IronSteel.AddTarget(CoinHand.SpawnCoin(transform.position + feet), false);
            //} else { // If only pressing the COIN button, draw a coin into hand
            IronSteel.AddTarget(CoinHand.WithdrawCoinToHand(), false);
            //}
        }
    }