public void NoseSense(Collider other) { if (Params.NoseParam.IsActive) { if (Behaviors.Action is FindPair) { Creature creature = other.GetComponent <Creature>(); if (creature != null) { Behaviors.GetBehavior <FindPair>().TriggerInvoke(creature); } } } }
public SteeringBehavior GetBehavior(SteeringBehavior.Type_ type) { return(Behaviors.GetBehavior(type).Behavior); }
public void BehaviorOff(SteeringBehavior.Type_ type) { Behaviors.GetBehavior(type).Behavior.ActiveOff(); }