NavMeshAgent.Stop
Stop(stopUpdates: bool = false): void;
Parameters

stopUpdates If true, the GameObject is stopped immediately and not affected by the avoidance system. If false, the NavMeshAgent controls the deceleration.
Description

Stop movement of this agent along its current path.