public bool HaveChildNode(Graph.ActionNode node) { if (childUnits == null) { return(false); } return(childNodesList.Contains(node)); }
private static ExecuteUnit CreateOringalUnit(Graph.ActionNode node, List <ExecuteUnit> copyEnviroment) { var unit = copyEnviroment.Find(x => x.node == node); if (unit == null) { unit = new ExecuteUnit(node); copyEnviroment.Add(unit); } return(unit); }
private List <Graph.ActionNode> childNodesList = new List <Graph.ActionNode>(); //子操作节点 public ExecuteUnit(Graph.ActionNode parentNode) { this.node = parentNode; }