예제 #1
0
    public override void Enter()
    {
        base.Enter();

        Debug.Log("STATE: Air Jump");
        _animator.PlayAnimation(PlayerAnimator.JumpName);

        _input.AttackPressed += OnAttackPressed;
        _input.JumpReleased  += OnJumpReleased;
        _input.DashPressed   += OnDashPressed;

        _player.DecreaseAirJumpsRemaining();

        _movement.SetVelocityYZero();
        _movement.MoveY(_data.AirJumpVelocity);

        _sfx.AirJumpSFX?.PlayOneShot(_player.transform.position);
        _jumpDust?.Play();
    }