Пример #1
0
    void GoToPrevPatrolPoint()
    {
        Vector3 patrolPointPosition = _prevPatrolPoint.position;
        bool    seesPatrolPoint     = CheckIfSeePoint(patrolPointPosition);

        if (seesPatrolPoint)
        {
            _pathFollower.GoToStaticTarget(patrolPointPosition);
        }
        else
        {
            _pathFollower.PathFindTo(patrolPointPosition);
        }
    }