public TaskSceneEditor(ITaskSceneEditorView taskSceneEditorView) { editorView = taskSceneEditorView; editorView?.Init(this, TaskTypeMgr.Ins.GetTaskTypeList()); listTaskEditor = new List <TaskEditor>(); editorView?.Reset(curTaskSceneData); }
public TaskSceneEditor(ST_TaskSceneData sceneData, ITaskSceneEditorView taskSceneEditorView) { editorView = taskSceneEditorView; editorView?.Init(this, TaskTypeMgr.Ins.GetTaskTypeList()); listTaskEditor = new List <TaskEditor>(); if (sceneData.listTaskData != null) { for (int i = 0; i < sceneData.listTaskData.Count; i++) { AddTask(sceneData.listTaskData[i]); } } strMainTaskID = sceneData.strMainTaskID; listSceneArgumentData = sceneData.listSceneArgumentData; editorView?.OnSceneArgumentChange(listSceneArgumentData); editorView?.Reset(sceneData); editorView?.OnSetMainTask(sceneData.strMainTaskID); }