Example #1
0
 void Update()
 {
     _aiUpdateTimer += Time.deltaTime;
     if (_aiUpdateTimer >= AIUpdateFreq)
     {
         if (CurrentBehavior != null)
         {
             CurrentBehavior.AIUpdate(_aiUpdateTimer);
         }
         _aiUpdateTimer = 0;
     }
 }