private void HandleAttack() { if (InputProvider.GetButtonDown("Attack")) { Attack.TryToActivate(GetDirection()); } }
private void HandleSkill() { if (InputProvider.GetButtonDown("Skill")) { Skill.TryToActivate(GetDirection()); } }
public bool GetButtonDown(string i_ButtonName) { if (m_InputProvider == null) { return(false); } return(m_InputProvider.GetButtonDown(i_ButtonName)); }
protected virtual void HandleJump() { if (InputProvider.GetButtonDown("Jump")) { if (IsOnGround) { Velocity.y = MaxJumpVelocity; _animation.Jump(); } } if (InputProvider.GetButtonUp("Jump")) { if (Velocity.y > MinJumpVelocity) { Velocity.y = MinJumpVelocity; } } }