示例#1
0
    private void OnLanding()
    {
        _landed = true;
        if (_dodged)
        {
            PlayerStates.UnSet(PlayerStates.AnimationParameter.DodgingInAir);
            PlayerStates.Set(PlayerStates.AnimationParameter.DodgeLanding);
            //_bDampDodge = true;
            SetVelocityForDampingForDodge();
        }

        /*  else if (!_isRunKeyPressed)
         * {
         *    SetVelocityForDamping();
         * }*/
        _falling = false;

        PlayerStates.UnSet(PlayerStates.AnimationParameter.Falling);
        PlayerStates.ResetTrigger(PlayerStates.AnimationParameter.Jump);
        PlayerStates.UnSet(PlayerStates.AnimationParameter.Jumping);
    }