public override MoveLookTarget GetNextPathWaypoint(bool allow3DMovement, bool allowOffGraphMovement, MoveLookTarget moveLookTarget)
        {
            if (moveLookTarget == null)
            {
                moveLookTarget = new RAIN.Motion.MoveLookTarget();
            }

            if ((base.pathTarget == null) || !base.pathTarget.IsValid)
            {
                moveLookTarget.TargetType = MoveLookTarget.MoveLookTargetType.None;
                return(moveLookTarget);
            }

            if (_aStarAIPath.canMove)
            {
                _aStarAIPath.TargetPosition = wp.position;

                moveLookTarget.VectorTarget = _aStarAIPath.TargetPoint;
            }

            return(moveLookTarget);
        }
        public override MoveLookTarget GetNextPathWaypoint(bool allow3DMovement, bool allowOffGraphMovement, MoveLookTarget moveLookTarget)
        {
            if (moveLookTarget == null)
            {
                moveLookTarget = new RAIN.Motion.MoveLookTarget();
            }

            if ((base.pathTarget == null) || !base.pathTarget.IsValid)
            {
                moveLookTarget.TargetType = MoveLookTarget.MoveLookTargetType.None;
                return moveLookTarget;
            }

            if (_aStarAIPath.canMove)
            {
                _aStarAIPath.TargetPosition = wp.position;

                moveLookTarget.VectorTarget = _aStarAIPath.TargetPoint;
            }

            return moveLookTarget;
        }