示例#1
0
        public static AiTreeNode AiReplace(AiTreeNode node, PBNodeType nodeType)
        {
            node.LogicNode = NodeFactory.CreateInstance(nodeType);
            node.Refresh();

            return node;
        }
示例#2
0
        public static AiTreeNode AiNew(PBNodeType nodeType)
        {
            AiTreeNode aiNewNode = new AiTreeNode(NodeFactory.CreateInstance(nodeType));
            aiNewNode.Refresh();

            return aiNewNode;
        }