コード例 #1
0
 public bool HaveChildNode(Graph.ActionNode node)
 {
     if (childUnits == null)
     {
         return(false);
     }
     return(childNodesList.Contains(node));
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        private List <Graph.ActionNode> childNodesList = new List <Graph.ActionNode>();    //子操作节点

        public ExecuteUnit(Graph.ActionNode parentNode)
        {
            this.node = parentNode;
        }