public extern bool SetPath(NavMeshPath path); /// <summary>
// Update is called once per frame void Update() { if (navMeshAgent.remainingDistance <= arrivalDistance) { SelectRandomDestination(); } navMeshAgent.CalculatePath(destination, navMeshPath); navMeshAgent.SetPath(navMeshPath); }