Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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);
 }