예제 #1
0
    private void DoJump()
    {
        if (!_jumper.ReadyToJump())
        {
            return;
        }

        _stickiness.StopWalking(false);

        switch (_jumper.JumpMode)
        {
        case JumpMode.Classic:
            _jumper.NormalJump(-_joystick2.Direction);
            break;

        case JumpMode.Charge:
            _jumper.Charge(-_joystick2.Direction);
            break;

        case JumpMode.Direct:
            _jumper.LaunchDirectJump(_jumper.AimTarget);
            break;
        }
    }