private void CreateConnectionInLoad(NodeConnectionData data) { if (connections == null) { connections = new List <Connection>(); } connections.Add(Connection.CreateConnectionInLoad(data)); }
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); }
public void CopyData(NodeConnectionData other) { GUID = other.GUID; inGUID = other.inGUID; outGUID = other.outGUID; }
public Connection(NodeConnectionData data) { NodeGUIUtility.AddInstance(data); this.data = data; }
public static Connection CreateConnectionInLoad(NodeConnectionData data) { return(new Connection(data)); }