public void Halt() { canAttack = false; isJumping = false; allowAction = false; isAttacking = false; isCrouching = false; isOverthrusting = false; isUnderthrusting = false; isMovingHorizontally = false; _movement.HaltJump(); _movement.HaltMotion(); }
protected void DetectJumpCommand() { if (!canJump) { return; } if (_control.GetAxis(JumpAxis) == 0) { if (_movement.MovementType == SidescrollingMovementType.Jumping) { _movement.HaltJump(); } return; } _movement.Jump(); _isJumping = true; }