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