예제 #1
0
        private void LoadData()
        {
            AllClear();
            NodeSerializableData datas = owner.Load();

            if (datas == null || datas.nodeDatas == null)
            {
                return;
            }


            foreach (var node in datas.nodeDatas)
            {
                NodeGUIUtility.AddInstance(node);
                CreateNodeInLoad(node);
            }

            foreach (var node in datas.nodeFuncDatas)
            {
                NodeGUIUtility.AddInstance(node);
                CreateNodeInLoad(node);
            }

            foreach (var point in datas.nodePointDatas)
            {
                NodeGUIUtility.AddInstance(point);
                CreateNodePointInLoad(point);
            }

            foreach (var connect in datas.nodeConnectionDatas)
            {
                NodeGUIUtility.AddInstance(connect);
                CreateConnectionInLoad(connect);
            }
        }
예제 #2
0
 public ConnectionPoint(NodePointData data)
 {
     NodeGUIUtility.AddInstance(data);
     this.data = data;
 }
예제 #3
0
 public NodeGUI(NodeData data)
 {
     NodeGUIUtility.AddInstance(data);
     this.data      = data;
     data.rect.size = new Vector2(180f, 4000f);
 }
예제 #4
0
 public Connection(NodeConnectionData data)
 {
     NodeGUIUtility.AddInstance(data);
     this.data = data;
 }