//------------------------------------------------------------------------- public override void onInit() { TbDataTaskDialogue = EbDataMgr.Instance.getData <TbDataTaskDialogue>(TaskData.task_id); if (TaskData.task_state == TaskState.Init) { if (TbDataTask.AcceptNpcId == 0) { TaskData.task_state = TaskState.Doing; } else { TaskData.task_state = TaskState.CanDo; } } }
//------------------------------------------------------------------------- public override void onInit() { TbDataTaskDialogue = EbDataMgr.Instance.getData<TbDataTaskDialogue>(TaskData.task_id); if (TaskData.task_state == TaskState.Init) { if (TbDataTask.AcceptNpcId == 0) { TaskData.task_state = TaskState.Doing; } else { TaskData.task_state = TaskState.CanDo; } } }