void Update() { if (Input.GetButtonDown("Cancel")) { IsPaused = !IsPaused; } }
public static new bool GetButtonDown(string buttonName) { if (!Enabled) { return(false); } return(UnityInput.GetButtonDown(buttonName)); }
public bool GetButtonJustPressed() { if (this.isKey) { return(DefInput.GetKeyDown(this.key)); } else { return(DefInput.GetButtonDown(this.input)); } }
private void Update() { m_jump = UnityInput.GetButtonDown("Jump"); m_crouch = UnityInput.GetButton("Crouch"); m_horizontalMove = UnityInput.GetAxis("Horizontal"); }
public static bool IsNewButtonPress(string name) { return(UnityInput.GetButtonDown(name)); }
private void UpdateCurrentJumpState() { currentJumpState = UnityInput.GetButtonDown("Jump"); }