Exemple #1
0
        public TaskEditor(ST_TaskData taskData, ITaskEditorView taskEditorView)
        {
            this.view = taskEditorView;
            view?.Init(this);

            this._curTaskData = taskData;
            InitByTaskType(taskData.strTaskTypeName);
        }
Exemple #2
0
        public TaskEditor(string taskID, string taskTypeName, ITaskEditorView taskEditorView)
        {
            this.view = taskEditorView;
            view?.Init(this);

            _curTaskData.strID = taskID;
            InitByTaskType(taskTypeName.ToString());
        }
        public void OnSetMainTask(string strMainTaskID)
        {
            curMainTask?.SetIsMainTask(false);
            ITaskEditorView view = SceneEditor.GetTaskEditor(strMainTaskID)?.view;

            if (view != null)
            {
                curMainTask = view as UITaskItem;
            }
            curMainTask?.SetIsMainTask(true);
        }