December 2013
Beginner
320 pages
8h 22m
English
Our next script will control our simple chase AI. Because we are making use of the NavMesh and NavMeshAgent components, we can leave nearly all the difficult portions of pathfinding to Unity:
ChasePlayer.public NavMeshAgent agent;
PlayerPosition script's variable, that was set up earlier, and the SetDestination function from the NavMeshAgent. Once we tell the function ...Read now
Unlock full access