Beispiel #1
0
 public GraphEditorData(uNodeComponentSystem graph)
 {
     if (graph is uNodeData data)
     {
         gameObject = data.gameObject;
         _graphData = data;
     }
     else if (graph is uNodeRoot root)
     {
         _graph = root;
         if (root)
         {
             gameObject = root.gameObject;
         }
     }
     else
     {
         _graph = null;
     }
 }
Beispiel #2
0
 public static bool IsRuntimeGraph(this uNodeComponentSystem graph)
 {
     return(graph is IIndependentGraph);
 }