Is there a way to toggle the navmesh agent.stop and agent.resume like “animator.enabled = !animator.enabled.”
void Update() {
if (Input.GetKeyDown ("k")) {
//stops animation
anim.enabled = !anim.enabled;
agent.velocity = Vector3.zero;
agent.Stop(); //????
print ("Animation and motion paused.");
}