I keep receiving this error and have tried multiple ways of trying to fix it.
“SetDestination” can only be called on an active agent that has been placed on a NavMesh.
UnityEngine.AI.NavMeshAgent:SetDestination (UnityEngine.Vector3)
EnemyAI:ChaseTarget () (at Assets/Scripts/Enemy/EnemyAI.cs:73)
EnemyAI:EngageTarget () (at Assets/Scripts/Enemy/EnemyAI.cs:55)
EnemyAI:Update () (at Assets/Scripts/Enemy/EnemyAI.cs:36)
It only does this on enemy death