public override void HandleInput() { if (InputHelp.AnyButtonDown()) { InputHelp.ResetInputAxes(); ExitScreen(); Time.timeScale = 1; } }
public override void HandleInput() { base.HandleInput(); if (_inputTimer > 0) { _inputTimer = Mathf.Max(_inputTimer - Time.deltaTime, 0); } if (_inputTimer == 0 && InputHelp.GetButtonDown(InputHelp.Buttons.Left)) { AdjustSelectedIndex(-1); } else if (_inputTimer == 0 && InputHelp.GetButtonDown(InputHelp.Buttons.Right)) { AdjustSelectedIndex(1); } if (InputHelp.GetButtonDown(InputHelp.Buttons.Jump) || InputHelp.GetButtonDown(InputHelp.Buttons.Attack)) { switch (_selectionIndex) { case 0: PlayerModel.DialogCount = 1; ScreenManager.LoadScene("Dialog"); ExitScreen(); break; case 1: Application.Quit(); break; } SoundManager.PlayConfirm(); InputHelp.ResetInputAxes(); } }