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

            runtimeMathGraph.graph.RemoveNode(selectedNode);
            runtimeMathGraph.Refresh();
            Close();
        }
Esempio n. 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>();
 }