agent.SetDestination(transform.position); Stop函数,ResetPath函数。都不能使得 NavMeshAgent停止移动。 那就设置当前 角色的 position位置坐标,就可以立即停止移动