Hey hey!
I followed Rick’s instructions in this section but found myself with an error.
“SetDestination” can only be called on an active agent that has been placed on a NavMesh.
UnityEngine.AI.NavMeshAgent:SetDestination(Vector3)
EnemyAI:ChaseTarget() (at Assets/Scripts/EnemyAI.cs:71)
EnemyAI:EngageTarget() (at Assets/Scripts/EnemyAI.cs:58)
EnemyAI:Update() (at Assets/Scripts/EnemyAI.cs:36)
It appears disabling the NavMeshAgent caused the error. I didn’t see anyone else ask this question, so I assume I’ve incorrectly applied something within my code or prefabs.
Thanks in advance for the help!