Example #1
0
 private MainState GetReportTaskMainState(QuestTask task)
 {
     for (int i = 0; i < reportChangeTask.Count; i++)
     {
         if (reportChangeTask[i] == task)
         {
             return(reportTaskState[i]);
         }
     }
     return(MainState.NotStarted);
 }
Example #2
0
        public override void OnInspectorGUI()
        {
            QuestTask questTask = (QuestTask)target;

            base.OnInspectorGUI();
            int startIndex = EditorGUILayout.Popup("Start Logic Map", questTask.GetLogicMaps().IndexOf(questTask.startLogicMap), questTask.GetLogicMapNames().ToArray());

            if (startIndex != -1)
            {
                questTask.startLogicMap = questTask.logicMaps[startIndex];
            }
            if (eUtils.isPrefab(questTask))
            {
                EditorGUILayout.LabelField("---Для редактирования вынести на сцену!---");
            }
            else
            {
                EditorGUILayout.Separator();
                eUtils.DrawLogicMapList(questTask.logicMaps, questTask.transform, ref showLogicMaps, serializedObject);
            }
            serializedObject.ApplyModifiedProperties();
            EditorUtility.SetDirty(questTask.gameObject);
        }