|
@@ -2,8 +2,6 @@ using FairyGUI;
|
|
using UI.LuckyBox;
|
|
using UI.LuckyBox;
|
|
using UI.CommonGame;
|
|
using UI.CommonGame;
|
|
using System;
|
|
using System;
|
|
-using System.Collections.Generic;
|
|
|
|
-using UnityEngine;
|
|
|
|
|
|
|
|
namespace GFGGame
|
|
namespace GFGGame
|
|
{
|
|
{
|
|
@@ -12,18 +10,6 @@ namespace GFGGame
|
|
private UI_LuckyBoxUI _ui;
|
|
private UI_LuckyBoxUI _ui;
|
|
private ValueBarController _valueBarController;
|
|
private ValueBarController _valueBarController;
|
|
|
|
|
|
- private GameObject _gameObject;
|
|
|
|
- private GoWrapper _wrapper;
|
|
|
|
- private GameObject _gameObject1;
|
|
|
|
- private GoWrapper _wrapper1;
|
|
|
|
- private GameObject _gameObject2;
|
|
|
|
- private GoWrapper _wrapper2;
|
|
|
|
- private GameObject _gameObject3;
|
|
|
|
- private GoWrapper _wrapper3;
|
|
|
|
-
|
|
|
|
- private bool isActiveBoxOpen = false;
|
|
|
|
- private int _selectedIndex = 0;
|
|
|
|
-
|
|
|
|
public override void Dispose()
|
|
public override void Dispose()
|
|
{
|
|
{
|
|
_valueBarController.Dispose();
|
|
_valueBarController.Dispose();
|
|
@@ -43,8 +29,8 @@ namespace GFGGame
|
|
_valueBarController = new ValueBarController(_ui.m_valueBar);
|
|
_valueBarController = new ValueBarController(_ui.m_valueBar);
|
|
_ui.m_btnBack.onClick.Add(OnClickBtnBack);
|
|
_ui.m_btnBack.onClick.Add(OnClickBtnBack);
|
|
_ui.m_btnHome.onClick.Add(OnClickBtnHome);
|
|
_ui.m_btnHome.onClick.Add(OnClickBtnHome);
|
|
- _ui.m_btnBuyOne.target.onClick.Add(OnClickBtnBuyOne);
|
|
|
|
- _ui.m_btnBuyTen.target.onClick.Add(OnClickBtnBuyTen);
|
|
|
|
|
|
+ _ui.m_btnBuyOne.onClick.Add(OnClickBtnBuyOne);
|
|
|
|
+ _ui.m_btnBuyTen.onClick.Add(OnClickBtnBuyTen);
|
|
_ui.m_btnPreview.onClick.Add(OnClickBtnPreview);
|
|
_ui.m_btnPreview.onClick.Add(OnClickBtnPreview);
|
|
_ui.m_btnExchange.onClick.Add(OnClickBtnExChange);
|
|
_ui.m_btnExchange.onClick.Add(OnClickBtnExChange);
|
|
_ui.m_btnLeft.onClick.Add(() => { onClickChange(-1); });
|
|
_ui.m_btnLeft.onClick.Add(() => { onClickChange(-1); });
|
|
@@ -53,7 +39,7 @@ namespace GFGGame
|
|
_ui.m_listBg.itemRenderer = RenderListBgItem;
|
|
_ui.m_listBg.itemRenderer = RenderListBgItem;
|
|
_ui.m_c1.onChanged.Add(OnListBgScroll);//分页控制器
|
|
_ui.m_c1.onChanged.Add(OnListBgScroll);//分页控制器
|
|
|
|
|
|
- // Reset();//初始默认值
|
|
|
|
|
|
+ Reset();//初始默认值
|
|
}
|
|
}
|
|
|
|
|
|
protected override void OnShown()
|
|
protected override void OnShown()
|
|
@@ -63,36 +49,25 @@ namespace GFGGame
|
|
EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdateNormal);
|
|
EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, UpdateNormal);
|
|
EventAgent.AddEventListener(ConstMessage.MONEY_CHANGE, UpdateNormal);
|
|
EventAgent.AddEventListener(ConstMessage.MONEY_CHANGE, UpdateNormal);
|
|
|
|
|
|
- int boxId = LuckyBoxDataManager.Instance.luckyBoxIds[0];
|
|
|
|
- if (this.viewData != null)
|
|
|
|
- {
|
|
|
|
- object[] datas = (this.viewData as object[]);
|
|
|
|
- if (datas != null && datas.Length > 1)
|
|
|
|
- {
|
|
|
|
- boxId = (int)datas[1];
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- boxId = (int)this.viewData;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
|
|
- LuckyBoxBonusDataCache.currentBoxId = boxId;
|
|
|
|
- isActiveBoxOpen = Array.IndexOf(LuckyBoxDataManager.Instance.luckyBoxIds, LuckyBoxDataManager.BOX_ID_1) >= 0;
|
|
|
|
|
|
|
|
- _ui.m_listBg.numItems = LuckyBoxDataManager.Instance.luckyBoxIds.Length;
|
|
|
|
- _ui.m_listBg.ScrollToView(Array.IndexOf(LuckyBoxDataManager.Instance.luckyBoxIds, LuckyBoxBonusDataCache.currentBoxId));
|
|
|
|
|
|
+ _ui.m_listBg.numItems = 3;
|
|
|
|
+ int index = Array.IndexOf(LuckyBoxDataManager.Instance.luckyBoxIds, LuckyBoxBonusDataCache.currentBoxId);
|
|
|
|
+ // if (!GuideDataManager.CheckGuideIsCompletedAtThisLogin(ConstGuideId.MAIN_UI_BTN_ZHAI_XING))
|
|
|
|
+ // {
|
|
|
|
+ // index = _ui.m_listBg.numItems - 1;
|
|
|
|
+ // }
|
|
|
|
+ _ui.m_listBg.ScrollToView(index);
|
|
_ui.m_listBg.scrollPane.decelerationRate = 0.8f;
|
|
_ui.m_listBg.scrollPane.decelerationRate = 0.8f;
|
|
-
|
|
|
|
Timers.inst.Add(1, 0, CheckTime);
|
|
Timers.inst.Add(1, 0, CheckTime);
|
|
|
|
|
|
_valueBarController.OnShown();
|
|
_valueBarController.OnShown();
|
|
_valueBarController.Controller(4);
|
|
_valueBarController.Controller(4);
|
|
|
|
|
|
onClickChange(0);
|
|
onClickChange(0);
|
|
- updateActiveBox();
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+ }
|
|
private void RenderListBgItem(int index, GObject obj)
|
|
private void RenderListBgItem(int index, GObject obj)
|
|
{
|
|
{
|
|
UI_ComListBgItem item = UI_ComListBgItem.Proxy(obj);
|
|
UI_ComListBgItem item = UI_ComListBgItem.Proxy(obj);
|
|
@@ -101,31 +76,32 @@ namespace GFGGame
|
|
}
|
|
}
|
|
private void CheckTime(object param = null)
|
|
private void CheckTime(object param = null)
|
|
{
|
|
{
|
|
- // int index = Array.IndexOf(LuckyBoxDataManager.Instance.luckyBoxIds, LuckyBoxDataManager.BOX_ID_1);
|
|
|
|
- if (!isActiveBoxOpen)
|
|
|
|
|
|
+ int startTime = LuckyBoxDataManager.Instance.startTime;
|
|
|
|
+ int endTime = LuckyBoxDataManager.Instance.endTime;
|
|
|
|
+ int curTime = DateUtils.Instance.GetCurTime();
|
|
|
|
+ if (curTime < startTime || curTime >= endTime)
|
|
{
|
|
{
|
|
- //活动未开启
|
|
|
|
- LuckyBoxBonusDataCache.currentBoxId = LuckyBoxDataManager.Instance.luckyBoxIds[0];
|
|
|
|
|
|
+ //抽奖活动未开启或已过时
|
|
|
|
+ if (_ui.m_c1.selectedIndex == 2)
|
|
|
|
+ {
|
|
|
|
+ _ui.m_listBg.ScrollToView(0);
|
|
|
|
+ }
|
|
|
|
+ _ui.m_listBg.numItems = 2;
|
|
Timers.inst.Remove(CheckTime);
|
|
Timers.inst.Remove(CheckTime);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- int endTime = LuckyBoxDataManager.Instance.endTime;
|
|
|
|
- int curTime = DateUtils.Instance.GetCurTime();
|
|
|
|
- UI_ComListBgItem.Proxy(_ui.m_listBg.GetChildAt(0)).m_txtTime.text = DateUtils.Instance.getFormatBySecond(endTime - curTime, 1, 1);
|
|
|
|
|
|
+ UI_ComListBgItem.Proxy(_ui.m_listBg.GetChildAt(2)).m_txtTime.text = DateUtils.Instance.getFormatBySecond(endTime - curTime);
|
|
}
|
|
}
|
|
private void OnListBgScroll()
|
|
private void OnListBgScroll()
|
|
{
|
|
{
|
|
- // if (_ui.m_c1.selectedIndex == -1 || _ui.m_listBg.numChildren <= 0) return;
|
|
|
|
|
|
+ if (_ui.m_c1.selectedIndex == -1 || _ui.m_listBg.numChildren <= 0) return;
|
|
|
|
+ onClickChange(0);
|
|
|
|
|
|
UI_ComListBgItem item = UI_ComListBgItem.Proxy(_ui.m_listBg.GetChildAt(_ui.m_c1.selectedIndex));
|
|
UI_ComListBgItem item = UI_ComListBgItem.Proxy(_ui.m_listBg.GetChildAt(_ui.m_c1.selectedIndex));
|
|
|
|
+ item.m_c1.selectedIndex = _ui.m_c1.selectedIndex;
|
|
|
|
+
|
|
LuckyBoxBonusDataCache.currentBoxId = LuckyBoxDataManager.Instance.luckyBoxIds[_ui.m_c1.selectedIndex];
|
|
LuckyBoxBonusDataCache.currentBoxId = LuckyBoxDataManager.Instance.luckyBoxIds[_ui.m_c1.selectedIndex];
|
|
- item.m_txtTime.visible = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
|
|
|
|
- item.m_imgTitle.visible = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
|
|
|
|
- item.m_loaImg.visible = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_3;
|
|
|
|
- item.m_holder.visible = isActiveBoxOpen && LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
|
|
|
|
- item.m_holder1.visible = isActiveBoxOpen && LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
|
|
|
|
|
|
|
|
- onClickChange(0);
|
|
|
|
UpdateNormal();
|
|
UpdateNormal();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -135,13 +111,19 @@ namespace GFGGame
|
|
_valueBarController.UpdateCJ(LuckyBoxBonusDataCache.currentBoxId);
|
|
_valueBarController.UpdateCJ(LuckyBoxBonusDataCache.currentBoxId);
|
|
|
|
|
|
|
|
|
|
- _ui.m_comCostOne.m_txtCost.text = luckyBoxCfg.costNum.ToString();
|
|
|
|
- _ui.m_comCostTen.m_txtCost.text = luckyBoxCfg.costNumTen.ToString();
|
|
|
|
|
|
+ _ui.m_comCostOne.m_txtCost.text = luckyBoxCfg.costNum.ToString();// string.Format("{0}",);
|
|
|
|
+ _ui.m_comCostTen.m_txtCost.text = luckyBoxCfg.costNumTen.ToString();// string.Format("{1}", );
|
|
_ui.m_comCostOne.m_loaCost.url = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(luckyBoxCfg.costID).res);
|
|
_ui.m_comCostOne.m_loaCost.url = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(luckyBoxCfg.costID).res);
|
|
_ui.m_comCostTen.m_loaCost.url = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(luckyBoxCfg.costID).res);
|
|
_ui.m_comCostTen.m_loaCost.url = ResPathUtil.GetCommonGameResPath(ItemCfgArray.Instance.GetCfg(luckyBoxCfg.costID).res);
|
|
|
|
|
|
|
|
+ // if (!GuideController.TryGuideByGuideId(_ui.m_btnBuyTen, ConstGuideId.MAIN_UI_BTN_ZHAI_XING, 1, true, "点击按钮,开始抽奖,可以抽到好看的服装哦"))
|
|
|
|
+ // {
|
|
|
|
+ // GuideController.TryGuideByGuideId(_ui.m_btnBack, ConstGuideId.LUCKY_BOX_VIEW_BTN_BACK, 1, true, "点击按钮,返回主界面", 0, ConstGuideId.MAIN_UI_BTN_ZHAI_XING);
|
|
|
|
+ // }
|
|
|
|
+ // if (GuideDataManager.GetGuideCount(ConstGuideId.LUCKY_BOX_VIEW_BTN_BACK) <= 0)
|
|
|
|
+ // {
|
|
Timers.inst.AddUpdate(UpdateToCheckGuide);
|
|
Timers.inst.AddUpdate(UpdateToCheckGuide);
|
|
-
|
|
|
|
|
|
+ // }
|
|
int count = LuckyBoxBonusDataCache.GetOwnedCount();
|
|
int count = LuckyBoxBonusDataCache.GetOwnedCount();
|
|
_ui.m_txtOwned.SetVar("v1", "" + count).FlushVars();
|
|
_ui.m_txtOwned.SetVar("v1", "" + count).FlushVars();
|
|
|
|
|
|
@@ -150,34 +132,38 @@ namespace GFGGame
|
|
private void onClickChange(int count)
|
|
private void onClickChange(int count)
|
|
{
|
|
{
|
|
_ui.m_c1.selectedIndex = _ui.m_c1.selectedIndex + count;
|
|
_ui.m_c1.selectedIndex = _ui.m_c1.selectedIndex + count;
|
|
- _ui.m_imgSpecial.visible = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
|
|
|
|
- _ui.m_btnRight.visible = _ui.m_c1.selectedIndex != _ui.m_listBg.numItems - 1;
|
|
|
|
- _ui.m_btnLeft.visible = _ui.m_c1.selectedIndex != 0;
|
|
|
|
- _ui.m_btnBuyOne.m_holder.visible = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
|
|
|
|
- _ui.m_btnBuyTen.m_holder.visible = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1;
|
|
|
|
- }
|
|
|
|
|
|
|
|
- private void updateActiveBox()
|
|
|
|
- {
|
|
|
|
- if (isActiveBoxOpen)
|
|
|
|
|
|
+ if (_ui.m_c1.selectedIndex == _ui.m_listBg.numItems - 1)
|
|
{
|
|
{
|
|
- int index = Array.IndexOf(LuckyBoxDataManager.Instance.luckyBoxIds, LuckyBoxDataManager.BOX_ID_1);
|
|
|
|
- UI_ComListBgItem item = UI_ComListBgItem.Proxy(_ui.m_listBg.GetChildAt(index));
|
|
|
|
- string resPath = ResPathUtil.GetViewEffectPath("ui_cj", "ui_cj_bt");
|
|
|
|
- SceneController.AddObjectToView(_gameObject, _wrapper, item.m_holder, resPath, out _gameObject, out _wrapper);
|
|
|
|
- string resPath3 = ResPathUtil.GetDressUpAnimationPath("dz_jiyuet");
|
|
|
|
- SceneController.AddObjectToView(_gameObject3, _wrapper3, item.m_holder1, resPath3, out _gameObject3, out _wrapper3, 120);
|
|
|
|
-
|
|
|
|
- string resPath1 = ResPathUtil.GetViewEffectPath("ui_cj", "ui_cj_sl");
|
|
|
|
- SceneController.AddObjectToView(_gameObject1, _wrapper1, _ui.m_btnBuyOne.m_holder, resPath1, out _gameObject1, out _wrapper1);
|
|
|
|
- SceneController.AddObjectToView(_gameObject2, _wrapper2, _ui.m_btnBuyTen.m_holder, resPath1, out _gameObject2, out _wrapper2);
|
|
|
|
-
|
|
|
|
|
|
+ _ui.m_btnRight.visible = false;
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ _ui.m_btnRight.visible = true;
|
|
|
|
+ }
|
|
|
|
+ if (_ui.m_c1.selectedIndex == 0)
|
|
|
|
+ {
|
|
|
|
+ _ui.m_btnLeft.visible = false;
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ _ui.m_btnLeft.visible = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
private void OnClickBtnExChange()
|
|
private void OnClickBtnExChange()
|
|
{
|
|
{
|
|
- int storeId = LuckyBoxBonusDataCache.currentBoxId == LuckyBoxDataManager.BOX_ID_1 ? ConstStoreId.LUCKY_BOX_ACTIVITY_STORE_ID : ConstStoreId.LUCKY_BOX_STORE_ID;
|
|
|
|
- ViewManager.Show(ViewName.CLOTHING_SHOP_VIEW, new object[] { storeId }, new object[] { ViewName.LUCKY_BOX_VIEW, LuckyBoxBonusDataCache.currentBoxId });
|
|
|
|
|
|
+ int storeId = ConstStoreId.CLOTHING_STORE_ID;
|
|
|
|
+ if (_ui.m_c1.selectedIndex == 2 || _ui.m_c1.selectedIndex == 1 || _ui.m_c1.selectedIndex == -1)
|
|
|
|
+ {
|
|
|
|
+ storeId = ConstStoreId.LUCKY_BOX_STORE_ID;
|
|
|
|
+ }
|
|
|
|
+ else if (_ui.m_c1.selectedIndex == 0)
|
|
|
|
+ {
|
|
|
|
+ storeId = ConstStoreId.LUCKY_BOX_ACTIVITY_STORE_ID;
|
|
|
|
+ }
|
|
|
|
+ ViewManager.Show(ViewName.CLOTHING_SHOP_VIEW, new object[] { storeId }, new object[] { ViewName.LUCKY_BOX_VIEW });
|
|
this.Hide();
|
|
this.Hide();
|
|
}
|
|
}
|
|
private void OnClickBtnPreview()
|
|
private void OnClickBtnPreview()
|
|
@@ -191,7 +177,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
ItemDataManager.Remove(luckyBoxCfg.costID, luckyBoxCfg.costNum);
|
|
ItemDataManager.Remove(luckyBoxCfg.costID, luckyBoxCfg.costNum);
|
|
LuckyBoxDataManager.Instance.RewardList = LuckyBoxBonusDataCache.GetBonusList(1);
|
|
LuckyBoxDataManager.Instance.RewardList = LuckyBoxBonusDataCache.GetBonusList(1);
|
|
- ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, LuckyBoxBonusDataCache.currentBoxId, new object[] { ViewName.LUCKY_BOX_VIEW, LuckyBoxBonusDataCache.currentBoxId });
|
|
|
|
|
|
+ ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, _ui.m_c1.selectedIndex);
|
|
});
|
|
});
|
|
|
|
|
|
}
|
|
}
|
|
@@ -205,7 +191,7 @@ namespace GFGGame
|
|
Timers.inst.AddUpdate(UpdateToCheckGuide);
|
|
Timers.inst.AddUpdate(UpdateToCheckGuide);
|
|
ItemDataManager.Remove(luckyBoxCfg.costID, luckyBoxCfg.costNumTen);
|
|
ItemDataManager.Remove(luckyBoxCfg.costID, luckyBoxCfg.costNumTen);
|
|
LuckyBoxDataManager.Instance.RewardList = LuckyBoxBonusDataCache.GetBonusList(10, true);
|
|
LuckyBoxDataManager.Instance.RewardList = LuckyBoxBonusDataCache.GetBonusList(10, true);
|
|
- ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, LuckyBoxBonusDataCache.currentBoxId, new object[] { ViewName.LUCKY_BOX_VIEW, LuckyBoxBonusDataCache.currentBoxId });
|
|
|
|
|
|
+ ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, _ui.m_c1.selectedIndex);
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -214,7 +200,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
ItemDataManager.Remove(luckyBoxCfg.costID, luckyBoxCfg.costNumTen);
|
|
ItemDataManager.Remove(luckyBoxCfg.costID, luckyBoxCfg.costNumTen);
|
|
LuckyBoxDataManager.Instance.RewardList = LuckyBoxBonusDataCache.GetBonusList(10, false);
|
|
LuckyBoxDataManager.Instance.RewardList = LuckyBoxBonusDataCache.GetBonusList(10, false);
|
|
- ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, LuckyBoxBonusDataCache.currentBoxId, new object[] { ViewName.LUCKY_BOX_VIEW, LuckyBoxBonusDataCache.currentBoxId });
|
|
|
|
|
|
+ ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, _ui.m_c1.selectedIndex);
|
|
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -225,7 +211,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
if (GRoot.inst.GetTopWindow() == this.viewCom)
|
|
if (GRoot.inst.GetTopWindow() == this.viewCom)
|
|
{
|
|
{
|
|
- if (GuideController.TryGuideByGuideId(_ui.m_btnBuyTen.target, ConstGuideId.MAIN_UI_BTN_ZHAI_XING, 1, true, "点击摘取十次"))
|
|
|
|
|
|
+ if (GuideController.TryGuideByGuideId(_ui.m_btnBuyTen, ConstGuideId.MAIN_UI_BTN_ZHAI_XING, 1, true, "点击摘取十次"))
|
|
{
|
|
{
|
|
Timers.inst.Remove(UpdateToCheckGuide);
|
|
Timers.inst.Remove(UpdateToCheckGuide);
|
|
}
|
|
}
|
|
@@ -256,7 +242,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
GuideController.TryCompleteGuide(ConstGuideId.LUCKY_BOX_VIEW_BTN_BACK);
|
|
GuideController.TryCompleteGuide(ConstGuideId.LUCKY_BOX_VIEW_BTN_BACK);
|
|
this.Hide();
|
|
this.Hide();
|
|
-
|
|
|
|
|
|
+ // ViewManager.Show(ViewName.MAINUI_VIEW, null, new object[] { ViewName.LUCKY_BOX_VIEW });
|
|
Reset();
|
|
Reset();
|
|
ViewManager.GoBackFrom(ViewName.LUCKY_BOX_VIEW);
|
|
ViewManager.GoBackFrom(ViewName.LUCKY_BOX_VIEW);
|
|
}
|
|
}
|
|
@@ -264,11 +250,12 @@ namespace GFGGame
|
|
private void OnClickBtnHome()
|
|
private void OnClickBtnHome()
|
|
{
|
|
{
|
|
GameController.GoBackToMainView();
|
|
GameController.GoBackToMainView();
|
|
- // Reset();
|
|
|
|
|
|
+ Reset();
|
|
}
|
|
}
|
|
private void Reset()
|
|
private void Reset()
|
|
{
|
|
{
|
|
- LuckyBoxBonusDataCache.currentBoxId = LuckyBoxDataManager.BOX_ID_1;
|
|
|
|
|
|
+ LuckyBoxBonusDataCache.currentBoxId = 1;
|
|
|
|
+ _ui.m_c1.selectedIndex = 0;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|