Exemplo n.º 1
0
 public void SetBehaviourAll(AIBehaviour.Behaviour type)
 {
     foreach (AIBehaviour aiBehaviour in aiBehaviours)
     {
         aiBehaviour.LockBehaviour(type, overrideCurrent: true);
     }
 }
Exemplo n.º 2
0
 public AIProfileSettings GetProfile(AIBehaviour.Behaviour behaviour)
 {
     AIProfileSettings[] profiles = settings.profiles;
     foreach (AIProfileSettings aIProfileSettings in profiles)
     {
         if (aIProfileSettings.type == behaviour)
         {
             return(aIProfileSettings);
         }
     }
     return(null);
 }