예제 #1
0
    public void Halt()
    {
        canAttack            = false;
        isJumping            = false;
        allowAction          = false;
        isAttacking          = false;
        isCrouching          = false;
        isOverthrusting      = false;
        isUnderthrusting     = false;
        isMovingHorizontally = false;

        _movement.HaltJump();
        _movement.HaltMotion();
    }
예제 #2
0
    protected void DetectJumpCommand()
    {
        if (!canJump)
        {
            return;
        }

        if (_control.GetAxis(JumpAxis) == 0)
        {
            if (_movement.MovementType == SidescrollingMovementType.Jumping)
            {
                _movement.HaltJump();
            }

            return;
        }

        _movement.Jump();
        _isJumping = true;
    }