Exemple #1
0
 public void SendEvent(BehaviorPlan.ActionEventType eventType)
 {
     switch (eventType)
     {
         case BehaviorPlan.ActionEventType.end:
             BehaviorPlan.Instance.Event(Id + ":end");
             break;
         case BehaviorPlan.ActionEventType.start:
             BehaviorPlan.Instance.Event(Id + ":start");
             break;
     }
 }
Exemple #2
0
 public virtual void Event(BehaviorPlan.ActionEventType ev, BehaviorExecutionContext bec)
 {
     switch (ev)
     {
         case BehaviorPlan.ActionEventType.start: Launch(bec);
             break;
         case BehaviorPlan.ActionEventType.end: End(bec);
             break;
     }
 }