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

        InitTask();
        taskDBController.GetTaskDBList();
    }