public static void ShowWindow() { CardEditor cardEditor = (CardEditor)EditorWindow.GetWindow <CardEditor>("Card Editor", typeof(CardEditorList)); cardEditor.LoadListOfCards(); cardEditor.Show(); }
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); } }