Example #1
0
    public void OpenPlayer_1()
    {
        RPG_HERO_P1 window = EditorWindow.GetWindow <RPG_HERO_P1>("PLAYER 1 - CHOSEN CHARS", true);

        window.title = "PLAYER 1 - CHOSEN CHARS";
        window.childEditor(this);
    }
    static void Init()
    {
        // Get existing open window or if none, make a new one:
        RPG_HERO_P1 window = (RPG_HERO_P1)EditorWindow.GetWindow(typeof(RPG_HERO_P1));

        window.name = "RPG_BATTLE_EDITOR";

        if (window == null)
        {
            window.Close();
        }
    }