示例#1
0
        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();
        }
示例#2
0
        private void OnEnable()
        {
            instance = this;

            if (database == null)
            {
                SelectDatabase();
            }
            ResetChildEditors();
        }
示例#3
0
 private void OnDestroy()
 {
     if (childEditors != null)
     {
         for (int i = 0; i < childEditors.Count; i++)
         {
             childEditors[i].OnDestroy();
         }
     }
     instance = null;
 }
示例#4
0
 private static void OpenEditor()
 {
     QuestSystemEditor.ShowWindow();
 }