private IEnumerator OnStart() { agent.isStopped = false; CanRun = true; while (CanRun) { aiBrainObj.Navigate(agent); yield return(waitObj); } }
private void FixedUpdate() { aiBrainObj.Navigate(agent); }