public TaskEditor(ST_TaskData taskData, ITaskEditorView taskEditorView) { this.view = taskEditorView; view?.Init(this); this._curTaskData = taskData; InitByTaskType(taskData.strTaskTypeName); }
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); }