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