New Way to stop navmesh Agent

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 ?

agent.isStopped = true;

You can use NavMesh Agent. pause to stop and Resume to move again.