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();
         }
     }
 }
예제 #3
0
 private void Awake()
 {
     graph = GetComponentInParent <RuntimeMathGraph>();
 }