Ai can't touch the ground.

I am making a enemy Ai script and when the enemy hit the ground this error pops up:

.

“SetDestination” can only be called on an active agent that has been placed on a NavMesh. UnityEngine.AI.NavMeshAgent:SetDestination (UnityEngine.Vector3) EnimyAi:Patroling () (at Assets/Scrips/EnimyAi.cs:50) EnimyAi:Update () (at Assets/Scrips/EnimyAi.cs:40)

.

Does someone have a solution?

@Captain_Pineapple
195930-asb.png