|
@@ -245,13 +245,13 @@ namespace GFGGame
|
|
|
comBox.m_btnPreview.onClick.Add(OnClickBtnPreview);
|
|
|
comBox.m_btnPreview.data = boxId;
|
|
|
|
|
|
- if (comBox.m_btnReward.data == null)
|
|
|
+ if (comBox.m_btnReward.target.data == null)
|
|
|
{
|
|
|
- comBox.m_btnReward.onClick.Add(OnClikcBtnReward);
|
|
|
- comBox.m_btnShop.onClick.Add(OnClikcBtnShop);
|
|
|
- comBox.m_btnGiftBag.onClick.Add(OnClikcBtnGiftBag);
|
|
|
+ comBox.m_btnReward.target.onClick.Add(OnClikcBtnReward);
|
|
|
+ comBox.m_btnShop.target.onClick.Add(OnClikcBtnShop);
|
|
|
+ comBox.m_btnGiftBag.target.onClick.Add(OnClikcBtnGiftBag);
|
|
|
}
|
|
|
- comBox.m_btnReward.data = boxId;
|
|
|
+ comBox.m_btnReward.target.data = boxId;
|
|
|
|
|
|
obj.data = boxId;
|
|
|
comBox.m_grpTime.visible = (boxId == _activeBoxId);
|
|
@@ -337,7 +337,7 @@ namespace GFGGame
|
|
|
if (_curIndex == 1) {
|
|
|
GObject obj = _ui.m_listBg.GetChildAt(_curIndex);
|
|
|
UI_ComBox1 comBox = UI_ComBox1.Proxy(obj);
|
|
|
- RedDotController.Instance.SetComRedDot(comBox.m_btnReward, RedDotDataManager.Instance.GetActLuckyBoxRewardRed(ConstLimitTimeActivityType.ActLimitTsy), "", -21, 18);
|
|
|
+ RedDotController.Instance.SetComRedDot(comBox.m_btnReward.target, RedDotDataManager.Instance.GetActLuckyBoxRewardRed(ConstLimitTimeActivityType.ActLimitTsy), "", -21, 18);
|
|
|
|
|
|
comBox.m_txtCount.SetVar("value", ActivityDataManager.Instance.lastTsyDrawCount.ToString()).FlushVars();
|
|
|
UI_ComBox1.ProxyEnd();
|
|
@@ -368,7 +368,7 @@ namespace GFGGame
|
|
|
if (list.Count == 0)
|
|
|
{
|
|
|
comBox.m_comBagTime.target.visible = false;
|
|
|
- comBox.m_btnGiftBag.visible = false;
|
|
|
+ comBox.m_btnGiftBag.target.visible = false;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -393,13 +393,13 @@ namespace GFGGame
|
|
|
if (isSoldOut)
|
|
|
{
|
|
|
comBox.m_comBagTime.target.visible = false;
|
|
|
- comBox.m_btnGiftBag.visible = false;
|
|
|
+ comBox.m_btnGiftBag.target.visible = false;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
comBox.m_comBagTime.m_txtGiftBagTime.text = TimeUtil.GetTimeLeft(TimeInfo.Instance.ServerNow(), list[0].EndTime);
|
|
|
comBox.m_comBagTime.target.visible = true;
|
|
|
- comBox.m_btnGiftBag.visible = true;
|
|
|
+ comBox.m_btnGiftBag.target.visible = true;
|
|
|
}
|
|
|
}
|
|
|
UpdateBtnReward();
|