public static void ShowWindow() { QuestSystemEditor[] objArray = Resources.FindObjectsOfTypeAll <QuestSystemEditor>(); QuestSystemEditor editor = (objArray.Length <= 0 ? ScriptableObject.CreateInstance <QuestSystemEditor>() : objArray[0]); editor.hideFlags = HideFlags.HideAndDontSave; editor.minSize = new Vector2(690, 300); editor.titleContent = new GUIContent("Quest System"); editor.SelectDatabase(); }
private void OnEnable() { instance = this; if (database == null) { SelectDatabase(); } ResetChildEditors(); }
private void OnDestroy() { if (childEditors != null) { for (int i = 0; i < childEditors.Count; i++) { childEditors[i].OnDestroy(); } } instance = null; }
private static void OpenEditor() { QuestSystemEditor.ShowWindow(); }