public TaskLevel(DataTask dataTask, TaskDisplay taskDisplayer) { this._taskDisplayer = taskDisplayer; taskDisplayer.SetInfo(dataTask); _taskChecking = TaskCheckingInitializer.GetTaskCheking(dataTask.TypeTask); _countTask = dataTask.Count; }
public void CreateTask(DataTask dataTask) { TaskDisplay taskDisplayer = Instantiate(_prefTaskDisplay, _parentTasks); taskDisplayer.SetInfo(dataTask); TaskLevel taskLevel = new TaskLevel(dataTask, taskDisplayer); _listTaskLevel.Add(taskLevel); }