Пример #1
0
 public static void Init()
 {
     IsInit = false;
     NodeTypes.FetchNode();
     NodeInputSystem.Fetch();
     ConnectionType.Fetch();
     TreeNodeReflectionSystem.Fetch();
     NodeEditor.CreateManager();
     UnitEditor.CreateManager();
     IsInit = true;
     if (TrigInit != null)
     {
         TrigInit();
     }
 }
Пример #2
0
        public static Node CreateNode(Vector2 pos, string nodeId)
        {
            Node node = NodeTypes.getDefaultNode(nodeId);

            if (node == null)
            {
                Debug.Log("node editor running is warning!");
                TriggerEditorUtility.Init();
            }
            var npos = (pos - NodeEditor.curNodeEditorState.PanOffset) / NodeEditor.curNodeEditorState.GraphZoom;

            node = node.Create(
                npos);
            node.Init();
            return(node);
        }
Пример #3
0
 public static void PasteNode()
 {
     CallBack(NodeTypes.getDefaultNode(memoryNode.GetId));
 }