public void SetData(ActivityTemplateTaskVo vo) { _data = vo; _descTxt.text = _data.Desc; if (_data.IsDrop) { _progressTxt.text = I18NManager.Get("ActivityTemplate_ActivityTemplateTaskProgress", _data.CurNum, _data.Max); } }
/// <summary> /// 获取国庆节活动任务数据 /// </summary> /// <returns></returns> public List <ActivityTemplateTaskVo> GetActivityTaskVo() { List <ActivityTemplateTaskVo> vos = new List <ActivityTemplateTaskVo>(); var baseRules = _activityHolidayAwardRulePbs; for (int i = 0; i < _activityHolidayAwardRulePbs.Count; i++) { if (i == 0) { ActivityTemplateTaskVo vo = new ActivityTemplateTaskVo(baseRules[i], ConsumeItemId, _userActivityHolidayInfo); vos.Add(vo); } else { if (baseRules[i].HolidayModule != baseRules[i - 1].HolidayModule) { ActivityTemplateTaskVo vo = new ActivityTemplateTaskVo(baseRules[i], ConsumeItemId, _userActivityHolidayInfo); vos.Add(vo); } } } return(vos); }