예제 #1
0
파일: DeckEditor.cs 프로젝트: Nin1/2D-RPG
    public static void ShowWindow()
    {
        CardEditor cardEditor = (CardEditor)EditorWindow.GetWindow <CardEditor>("Card Editor", typeof(CardEditorList));

        cardEditor.LoadListOfCards();
        cardEditor.Show();
    }
예제 #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);
        }
    }