public void ResetOutputs() { List <NodeSocket> list = ListAllSockets(); for (int i = 0; i < list.Count; i++) { NodeOutput nodeOutput = list[i] as NodeOutput; if (nodeOutput != null) { nodeOutput.value = nodeOutput.initialValue; } } }
public void Connect(NodeOutput output) { if (output == null) { connectedNode = null; connectedSocket = null; } else { connectedNode = output.node; connectedSocket = output.name; } }
private void SafeSetValue(NodeOutput output, float value) { output?.SetValue(value); }
public virtual bool CanConnect(NodeOutput output) { return(!(output is NodeEntry)); }
public override bool CanConnect(NodeOutput output) { return(output is NodeEntry); }