public void AddConnection(string fromWindowID, string toWindowID, UIWindowConnection connection) { UIWindowTreeNode fromNode = GetNode(fromWindowID); if (fromNode == null) { Debug.LogError(string.Format("The tree: {0} doesnt has window: {1}", ToString(), fromWindowID)); return; } UIWindowTreeNode toNode = GetNode(toWindowID); if (toNode == null) { Debug.LogError(string.Format("The tree: {0} doesnt has window: {1}", ToString(), toWindowID)); return; } _connections.Add(new UIWIndowTreeNodeConnection(fromNode, toNode, connection)); }
public UIWIndowTreeNodeConnection(UIWindowTreeNode fromNode, UIWindowTreeNode toNode, UIWindowConnection connection) { _fromNode = fromNode; _toNode = toNode; _connection = connection; }