public void DeleteWord() { #if UNITY_EDITOR webWordsEraser = ScriptableObject.CreateInstance <WordEraser>(); webWordsEraser.Init(this); #endif }
public void ShowEditorWindow() { window = (WordEraser)GetWindow(typeof(WordEraser)); window.ShowUtility(); window.titleContent = new GUIContent("Delete word"); }