Пример #1
0
 /**
  * only paused the navigation calculations
  * the current destination is not lost, but the user needs to reposition themselves
  */
 private void PauseNavigation()
 {
     isPaused = true;
     _NavigationPresenter.ClearPathDisplay();
     //_NavMeshAgent.isStopped = true;
     //_NavMeshAgent.ActivateCurrentOffMeshLink(false);
     _NavMeshAgent.enabled = false;
     // Deactivate agent
 }