示例#1
0
        protected void RemoveChild(NodeContent content, NodeModifier node)
        {
            if (content.RemoveContenNode(node))
            {
                node.ForceStop();
            }

            NodeModifier[] nodes = node.NextNodes;
            for (int i = 0; i < nodes.Length; i++)
            {
                if (nodes[i].Parent != node)
                {
                    continue;
                }
                RemoveChild(content, nodes[i]);
            }
        }
示例#2
0
 public override EnumResult Tick(NodeContent content)
 {
     return(Tick());
 }
示例#3
0
 protected virtual EnumResult OnProcessing(NodeContent content, NodeModifier[] nextNode)
 {
     return(EnumResult.Success);
 }
示例#4
0
 public override EnumResult Tick(NodeContent content)
 {
     return(OnProcessing(content, NextNodes));
 }
示例#5
0
 public virtual EnumResult Tick(NodeContent content)
 {
     return(EnumResult.Success);
 }
示例#6
0
 public static void SetContent(NodeModifier node, NodeContent content)
 {
     node.RemoveFromContent();
     node.DeleteParent();
     node.SetContent(content);
 }