public void AddWord() { #if UNITY_EDITOR webWordsAppender = ScriptableObject.CreateInstance <WordsAppender>(); webWordsAppender.Init(this); #endif }
public void ShowEditorWindow() { window = (WordsAppender)GetWindow(typeof(WordsAppender)); window.ShowUtility(); window.titleContent = new GUIContent("Add new word"); }