|
@@ -61,6 +61,7 @@ namespace GFGGame
|
|
|
private void UpdateList()
|
|
|
{
|
|
|
_cfgs = DailyTaskDataManager.Instance.GetDailyTaskCfgs();
|
|
|
+
|
|
|
_ui.m_list.numItems = _cfgs.Count;
|
|
|
|
|
|
}
|
|
@@ -87,7 +88,7 @@ namespace GFGGame
|
|
|
item.m_btnGet.onClick.Add(OnBtnGetClick);
|
|
|
}
|
|
|
item.m_btnGet.data = _cfgs[index].id;
|
|
|
- if (item.m_btnGo.data == null && _cfgs[index].jumpId != "")
|
|
|
+ if (item.m_btnGo.data == null)
|
|
|
{
|
|
|
item.m_btnGo.onClick.Add(OnBtnGoClick);
|
|
|
}
|
|
@@ -96,9 +97,9 @@ namespace GFGGame
|
|
|
if (item.m_listTaskReward.data == null)
|
|
|
{
|
|
|
item.m_listTaskReward.itemRenderer = ListTaskRewardItemRender;
|
|
|
- item.m_listTaskReward.data = _cfgs[index].rewardsArr;
|
|
|
- item.m_listTaskReward.numItems = _cfgs[index].rewardsArr.Length;
|
|
|
}
|
|
|
+ item.m_listTaskReward.data = _cfgs[index].rewardsArr;
|
|
|
+ item.m_listTaskReward.numItems = _cfgs[index].rewardsArr.Length;
|
|
|
UI_ListItem.ClearProxy();
|
|
|
}
|
|
|
private void ListTaskRewardItemRender(int index, GObject obj)
|