public override void OnInspectorGUI() { if (GUILayout.Button("Open quests editor")) { QuestsEditor.ShowQuestsEditor(); } }
public static void ShowQuestsEditor() { m_questsCollection = QuestsSerialization.GetQuestsCollection; if (m_questsCollection == null) { Debug.LogError("Can not find quest data!"); return; } if (m_instance == null) { m_instance = GetWindow <QuestsEditor>(); } m_instance.Show(); }