void Start() { taskDBController = this.GetComponent<TaskDBController>(); taskDBController.OnAddTask += this.OnAddTask; taskDBController.OnGetTaskList += this.OnGetTaskList; taskDBController.OnUpdateTask += this.OnUpdateTask; ReadTaskInfo(); taskDBController.GetTaskDBList(); }
void Start() { taskDBController = this.GetComponent <TaskDBController>(); taskDBController.OnAddTask += this.OnAddTask; taskDBController.OnGetTaskList += this.OnGetTaskList; taskDBController.OnUpdateTask += this.OnUpdateTask; ReadTaskInfo(); taskDBController.GetTaskDBList(); }
void Awake() { _instance = this; taskDBController = this.GetComponent <TaskDBController>(); taskDBController.OnGetTaskDBList += this.OnGetTaskDBList; taskDBController.OnAddTaskDB += this.OnAddTaskDB; taskDBController.OnUpdateTaskDB += this.OnUpdateTaskDB; InitTask(); taskDBController.GetTaskDBList(); }
void Awake() { instance = this; taskDBController = GetComponent <TaskDBController>(); taskDBController.OnGetTaskDBList += OnGetTaskDBList; taskDBController.OnAddTaskDB += OnAddTaskDB; taskDBController.OnUpdateTaskDB += OnUpdateTaskDB; InitTask(); //初始化任务 taskDBController.GetTaskDBList(); //从服务器获取任务列表 }
private void Awake() { _instance = this; taskDBController = this.GetComponent<TaskDBController>(); taskDBController.OnGetTaskDBList += this.OnGetTaskDBList; taskDBController.OnAddTaskDB += this.OnAddTaskDB; taskDBController.OnUpdateTaskDB += this.OnUpdateTaskDB; InitTask(); taskDBController.GetTaskDBList(); }