Ejemplo n.º 1
0
    static void Create()
    {
        // Get existing open window or if none, make a new one:
        MapWindow window = (MapWindow)EditorWindow.GetWindow(typeof(MapWindow));

        window.place = FindObjectOfType <SearchPlace>();
        if (window.place == null)
        {
            SearchPlace search = new GameObject("Searcher").AddComponent <SearchPlace>();
            window.place = search;
        }


        window.Init();
        window.Show();
    }