/// <summary> Updates this object. </summary> public void Update() { if (Animator.AttackBehaviour.IsAttacking == false) { if (InputSource.WasAttackPressed() && Mover.IsGrounded) { StartAttacking(); } Mover.SetIntendedVelocity(GetIntendedVelocity()); Mover.CheckGrounding(); if (InputSource.WasDashPressed() && Mover.IsGrounded) { Mover.Dash(dashDistance); } if (InputSource.WasJumpPressed() && Mover.IsGrounded) { Mover.Jump(jumpHeight); } } else { Mover.SetIntendedVelocity(Vector3.zero); } }