예제 #1
0
        //-------------------------------------------------------------------------
        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;
                }
            }
        }
예제 #2
0
        //-------------------------------------------------------------------------
        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;
                }
            }
        }