/// <summary> /// Remove the connection between two nodes /// </summary> void RemoveConnection() { if (input.node != null) { if (input.node.output.nodes.Contains(this)) { input.node.output.nodes.Remove(this); } } input.node = parentGraph.connectedNode; ChainEditorUtilities.UpdateFollowUps(parentGraph); }
/// <summary> /// Add Connection between two nodes /// </summary> void AddConnection() { input.node = parentGraph.connectedNode; if (input.node != null) { if (input.node.output.nodes != null) { if (!input.node.output.nodes.Contains(this)) { input.node.output.nodes.Add(this); } } } ChainEditorUtilities.UpdateFollowUps(parentGraph); }