コード例 #1
0
ファイル: Action.cs プロジェクト: emote-project/Scenario1
 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;
     }
 }
コード例 #2
0
ファイル: Action.cs プロジェクト: emote-project/Scenario1
 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;
     }
 }