public static AiTreeNode AiReplace(AiTreeNode node, PBNodeType nodeType) { node.LogicNode = NodeFactory.CreateInstance(nodeType); node.Refresh(); return node; }
public static AiTreeNode AiNew(PBNodeType nodeType) { AiTreeNode aiNewNode = new AiTreeNode(NodeFactory.CreateInstance(nodeType)); aiNewNode.Refresh(); return aiNewNode; }