Hello ,
NavemeshAgent.Stop();
Says that is Deprecated
NavMeshAgent agent = GetComponent<NavMeshAgent>();
if (dist != Mathf.Infinity && RemainingDistance < 2.5f)
{
agent.Stop();
Debug.Log("Reached");
}
So, What is there to replace it ?