// Start is called before the first frame update
    void Start()
    {
        agent = GetComponent <NavMeshAgent>();

        path    = Pathfinding.Depthwise(start, end);
        current = 0;

        StartCoroutine("Patrol");
    }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     path    = Pathfinding.Depthwise(start, end);
     current = 0;
 }