예제 #1
0
 private IEnumerator OnStart()
 {
     agent.isStopped = false;
     CanRun          = true;
     while (CanRun)
     {
         aiBrainObj.Navigate(agent);
         yield return(waitObj);
     }
 }
예제 #2
0
 private void FixedUpdate()
 {
     aiBrainObj.Navigate(agent);
 }