Пример #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);
 }