public void RemoveNode() { RuntimeMathGraph runtimeMathGraph = GetComponentInParent <RuntimeMathGraph>(); runtimeMathGraph.graph.RemoveNode(selectedNode); runtimeMathGraph.Refresh(); Close(); }
void Start() { port = node.GetPort(fieldName); graph = GetComponentInParent <RuntimeMathGraph>(); if (port.IsOutput && port.IsConnected) { for (int i = 0; i < port.ConnectionCount; i++) { AddConnection(); } } }
private void Awake() { graph = GetComponentInParent <RuntimeMathGraph>(); }