Exemple #1
0
 public override void OnInspectorGUI()
 {
     if (GUILayout.Button("Open quests editor"))
     {
         QuestsEditor.ShowQuestsEditor();
     }
 }
Exemple #2
0
        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();
        }