|
@@ -140,6 +140,7 @@ namespace GFGGame
|
|
|
_ui.m_listSubTab.selectedIndex = 0;
|
|
|
_curSubTabIndex = 0;
|
|
|
OnListSubTabChange(_curSubTabIndex);
|
|
|
+ UpdateRedDot();
|
|
|
}
|
|
|
private void RenderListSubTabItem(int index, GObject obj)
|
|
|
{
|
|
@@ -199,10 +200,8 @@ namespace GFGGame
|
|
|
private void UpdateRedDot()
|
|
|
{
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_comTab.m_btn0.target, RedDotDataManager.Instance.GetChargeAddUpReward());
|
|
|
- if (_ui.m_comTab.m_c1.selectedIndex == ConstStoreSubId.STORE_CHARGE + 1)
|
|
|
- {
|
|
|
- RedDotController.Instance.SetComRedDot(_ui.m_listSubTab.GetChildAt(ConstStoreSubId.STORE_CHARGE_ADDUP).asCom, RedDotDataManager.Instance.GetChargeAddUpReward());
|
|
|
- }
|
|
|
+
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_listSubTab.GetChildAt(ConstStoreSubId.STORE_CHARGE_ADDUP).asCom, RedDotDataManager.Instance.GetChargeAddUpReward() && (_ui.m_comTab.m_c1.selectedIndex == ConstStoreSubId.STORE_CHARGE + 1));
|
|
|
}
|
|
|
}
|
|
|
}
|