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; } }
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; } }