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);
             }
         }
     }
 }
예제 #2
0
 public SteeringBehavior GetBehavior(SteeringBehavior.Type_ type)
 {
     return(Behaviors.GetBehavior(type).Behavior);
 }
예제 #3
0
 public void BehaviorOff(SteeringBehavior.Type_ type)
 {
     Behaviors.GetBehavior(type).Behavior.ActiveOff();
 }