예제 #1
0
 private void CreateConnectionInLoad(NodeConnectionData data)
 {
     if (connections == null)
     {
         connections = new List <Connection>();
     }
     connections.Add(Connection.CreateConnectionInLoad(data));
 }
예제 #2
0
        public static Connection CreateConnectionInRuntime(NodeConnectionData data)
        {
            Connection    c   = new Connection(data);
            NodePointData inP = NodeGUIUtility.GetInstance <NodePointData>(data.inGUID)
            , outP            = NodeGUIUtility.GetInstance <NodePointData>(data.outGUID);

            inP.connections.Add(data.GUID);
            outP.connections.Add(data.GUID);
            return(c);
        }
예제 #3
0
 public void CopyData(NodeConnectionData other)
 {
     GUID    = other.GUID;
     inGUID  = other.inGUID;
     outGUID = other.outGUID;
 }
예제 #4
0
 public Connection(NodeConnectionData data)
 {
     NodeGUIUtility.AddInstance(data);
     this.data = data;
 }
예제 #5
0
 public static Connection CreateConnectionInLoad(NodeConnectionData data)
 {
     return(new Connection(data));
 }