예제 #1
0
 public static bool AutoOpenMap(int instanceId, int line)
 {
     if (AssetDatabase.Contains(instanceId))
     {
         string path  = AssetDatabase.GetAssetPath(instanceId);
         var    graph = AssetDatabase.LoadAssetAtPath <NodeGraph>(path);
         if (graph != null && graph.Type.Equals("Map"))
         {
             MapGeneratorWindows.Init();
             MapEditor.Open(graph);
             return(true);
         }
     }
     return(false);
 }
예제 #2
0
 private static void OpenA()
 {
     MapGeneratorWindows.Init();
 }