protected override void LateUpdate() { // Pausing if (Keybinds.EscapeDown() && !PauseMenu.IsPaused) { PauseMenu.Pause(); } // Displaying Help Overlay if (Keybinds.ToggleHelpOverlay()) { HUD.HelpOverlayController.Toggle(); } }
private void Update() { if (Keybinds.EscapeDown()) { if (settingsMenu.IsOpen) { settingsMenu.BackSettings(); } else { UnPause(); } } }
private void Update() { if (Keybinds.EscapeDown()) { if (sceneSelectMenu.IsOpen) { sceneSelectMenu.CloseSceneSelect(); //OpenMainMenu(); } else if (settingsMenu.IsOpen) { settingsMenu.BackSettings(); } else { settingsMenu.OpenSettings(); } } }
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); //} } }