Exemplo n.º 1
0
        public override void SetPosition(Vector3 movePosition)
        {
            _waypoints = _useSimplePath
                ? _seeker.GetSimplePath(transform.position, movePosition)
                : _seeker.GetFullPath(transform.position, movePosition);

            if (_waypoints.Length > 0)
            {
                _waypointIndex = 0;
                IsMoving       = true;
            }
            else
            {
                _waypointIndex = -1;
                IsMoving       = false;
            }
        }