Esempio n. 1
0
    public static void ShowWindow()
    {
        CardEditor cardEditor = (CardEditor)EditorWindow.GetWindow <CardEditor>("Card Editor", typeof(CardEditorList));

        cardEditor.LoadListOfCards();
        cardEditor.Show();
    }
Esempio n. 2
0
    static void Init()
    {
        CardEditor ce = (CardEditor)EditorWindow.GetWindow(typeof(CardEditor));

        ce.Show();

        cardData = CardDataLoader.LoadData();
        keys     = new List <string>();
        foreach (KeyValuePair <string, CardDataLoader.CardData> kvp in cardData)
        {
            keys.Add(kvp.Key);
        }
    }