Пример #1
0
 override public void OnDispose()
 {
     while (nodes.Count > 0)
     {
         ActionNode node = nodes[nodes.Count - 1];
         RemoveNode(node);
         node.OnDispose();
     }
 }
Пример #2
0
 private void OnEventHandler(ActionNode node, ActionEventType eventType)
 {
     switch (eventType)
     {
     case ActionEventType.action_end:
         RemoveNode(node);
         node.OnDispose();
         if (IsEnd())
         {
             OnEnd();
         }
         else
         {
             OnNext();
         }
         break;
     }
 }