Exemple #1
0
        public virtual void BeAttackMove(CharacterMotor motor, Vector3 direction)
        {
            Vector3 speed = direction * maxBeAttackMoveSpeed;

            if (needJump && motor.IsGrounded())
            {
                speed += motor.jumping.jumpDir * motor.CalculateJumpVerticalSpeed(motor.jumping.baseHeight);
            }
            motor.SetVelocity(speed);
        }