|
@@ -22,6 +22,7 @@ namespace GFGGame
|
|
private int _countShow = 0; //第几次展示
|
|
private int _countShow = 0; //第几次展示
|
|
private int _countNewRecord = 0; //展示步骤
|
|
private int _countNewRecord = 0; //展示步骤
|
|
private bool _handClick = false; //手动点击开启
|
|
private bool _handClick = false; //手动点击开启
|
|
|
|
+ private bool _AnimationWait = true; //抽卡动画等待加载完毕
|
|
|
|
|
|
private EffectUI _effectUI1;
|
|
private EffectUI _effectUI1;
|
|
private EffectUI _effectUI2;
|
|
private EffectUI _effectUI2;
|
|
@@ -95,12 +96,14 @@ namespace GFGGame
|
|
{
|
|
{
|
|
base.AddEventListener();
|
|
base.AddEventListener();
|
|
EventAgent.AddEventListener(ConstMessage.LUCKY_BOX_REWARD_SHOW, ReferNextShow);
|
|
EventAgent.AddEventListener(ConstMessage.LUCKY_BOX_REWARD_SHOW, ReferNextShow);
|
|
|
|
+ EventAgent.AddEventListener(ConstMessage.LUCKY_BOX_ANIMATION_WAIT, SetAnimationWait);
|
|
}
|
|
}
|
|
|
|
|
|
protected override void RemoveEventListener()
|
|
protected override void RemoveEventListener()
|
|
{
|
|
{
|
|
base.RemoveEventListener();
|
|
base.RemoveEventListener();
|
|
EventAgent.RemoveEventListener(ConstMessage.LUCKY_BOX_REWARD_SHOW, ReferNextShow);
|
|
EventAgent.RemoveEventListener(ConstMessage.LUCKY_BOX_REWARD_SHOW, ReferNextShow);
|
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.LUCKY_BOX_ANIMATION_WAIT, SetAnimationWait);
|
|
}
|
|
}
|
|
|
|
|
|
protected void ReferNextShow()
|
|
protected void ReferNextShow()
|
|
@@ -346,6 +349,8 @@ namespace GFGGame
|
|
private void ShowTurnItem(int index)
|
|
private void ShowTurnItem(int index)
|
|
{
|
|
{
|
|
UI_LuckyBoxBonusShowItem item = UI_LuckyBoxBonusShowItem.Proxy(_itemObjList[index]);
|
|
UI_LuckyBoxBonusShowItem item = UI_LuckyBoxBonusShowItem.Proxy(_itemObjList[index]);
|
|
|
|
+ if (!_AnimationWait)
|
|
|
|
+ return;
|
|
|
|
|
|
if (item.m_comIcon.m_imgNew.visible)
|
|
if (item.m_comIcon.m_imgNew.visible)
|
|
{
|
|
{
|
|
@@ -360,13 +365,14 @@ namespace GFGGame
|
|
_rewardItemList.Add(_rewardList[index]);
|
|
_rewardItemList.Add(_rewardList[index]);
|
|
ViewManager.Show<LuckyBoxNewDressView>(_rewardItemList);
|
|
ViewManager.Show<LuckyBoxNewDressView>(_rewardItemList);
|
|
}
|
|
}
|
|
- else
|
|
|
|
|
|
+ else
|
|
{
|
|
{
|
|
ViewManager.Hide<LuckyBoxNewDressView>();
|
|
ViewManager.Hide<LuckyBoxNewDressView>();
|
|
ViewManager.Hide<LuckyBoxNewCardView>();
|
|
ViewManager.Hide<LuckyBoxNewCardView>();
|
|
GetSuitItemController.TryShow(_itemIdList[index]);
|
|
GetSuitItemController.TryShow(_itemIdList[index]);
|
|
_recordTurnIndex.Add(index);
|
|
_recordTurnIndex.Add(index);
|
|
_countShow = 0;
|
|
_countShow = 0;
|
|
|
|
+ _AnimationWait = false;
|
|
|
|
|
|
if (_handClick)
|
|
if (_handClick)
|
|
{
|
|
{
|
|
@@ -418,5 +424,10 @@ namespace GFGGame
|
|
ViewManager.Hide<LuckyBoxNewDressView>();
|
|
ViewManager.Hide<LuckyBoxNewDressView>();
|
|
ViewManager.Hide<LuckyBoxNewCardView>();
|
|
ViewManager.Hide<LuckyBoxNewCardView>();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ private void SetAnimationWait()
|
|
|
|
+ {
|
|
|
|
+ _AnimationWait = true;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|