public void RemoveNode()
        {
            RuntimeMathGraph runtimeMathGraph = GetComponentInParent <RuntimeMathGraph>();

            runtimeMathGraph.graph.RemoveNode(selectedNode);
            runtimeMathGraph.Refresh();
            Close();
        }
示例#2
0
 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>();
 }