Esempio n. 1
0
 private void FixedUpdate()
 {
     if (aiEnabled)
     {
         StartCoroutine(behavior.AIUpdate());
         currentBstate = behavior.GetState();
     }
 }
Esempio n. 2
0
 private IEnumerator AIUpdate()
 {
     while (aiEnabled)
     {
         behavior.AIUpdate();
         currentBstate = behavior.GetState();
         yield return(new WaitForSeconds(1f));
     }
 }