private IAction action; //事件 internal static ActionNodeIAction Get(IAction action, int id) { ActionNodeIAction node = opNodes.Get(); node.id = id; node.action = action; return(node); }
/// <summary> /// 增加一个行动接口节点 /// </summary> /// <param name="action">调用的函数</param> /// <param name="id">用于区分多路回调</param> /// <returns></returns> public ActionSequence IAction(IAction action, int id) { nodes.Add(ActionNodeIAction.Get(action, id)); return(this); }