Exemplo n.º 1
0
    private static void OpenWindow()
    {
        GameObject cityObject = GameObject.FindWithTag("CG_CitySeed");

        if (cityObject != null)
        {
            city = cityObject.GetComponent(typeof(CitySeed)) as CitySeed;
            city.Start();
        }
        CitySeedEditorWindow window = GetWindow <CitySeedEditorWindow>();

        window.titleContent = new GUIContent("City Editor");
    }