예제 #1
0
 public void SetBehaviourAll(AIBehaviour.Behaviour type)
 {
     foreach (AIBehaviour aiBehaviour in aiBehaviours)
     {
         aiBehaviour.LockBehaviour(type, overrideCurrent: true);
     }
 }
예제 #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);
 }