|
@@ -53,6 +53,7 @@ namespace GFGGame
|
|
|
{
|
|
|
base.AddEventListener();
|
|
|
EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, UpdateRedDot);
|
|
|
+ EventAgent.AddEventListener(ConstMessage.SHOP_BUY, UpdateRedDot);
|
|
|
}
|
|
|
protected override void OnShown()
|
|
|
{
|
|
@@ -92,6 +93,7 @@ namespace GFGGame
|
|
|
{
|
|
|
base.RemoveEventListener();
|
|
|
EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, UpdateRedDot);
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.SHOP_BUY, UpdateRedDot);
|
|
|
|
|
|
}
|
|
|
private void OnClickBtnBack()
|
|
@@ -200,8 +202,10 @@ namespace GFGGame
|
|
|
private void UpdateRedDot()
|
|
|
{
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_comTab.m_btn0.target, RedDotDataManager.Instance.GetChargeAddUpReward());
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_listSubTab.GetChildAt(ConstStoreSubId.STORE_CHARGE_ADDUP).asCom, RedDotDataManager.Instance.GetChargeAddUpReward() && (_ui.m_comTab.m_c1.selectedIndex == ConstStoreTabId.STORE_CHARGE));
|
|
|
|
|
|
- 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));
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_comTab.m_btn2.target, RedDotDataManager.Instance.GetGiftBagReward());
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_listSubTab.GetChildAt(ConstStoreSubId.STORE_GIFT_BAG_ACTIVITY).asCom, RedDotDataManager.Instance.GetGiftBagReward() && (_ui.m_comTab.m_c1.selectedIndex == ConstStoreTabId.STORE_GIFT_BAG));
|
|
|
}
|
|
|
}
|
|
|
}
|