|
@@ -140,6 +140,7 @@ namespace GFGGame
|
|
|
protected override void OnShown()
|
|
|
{
|
|
|
base.OnShown();
|
|
|
+ _touchLoaBg = false;
|
|
|
_rewardList.AddRange(this.viewData as List<ItemData>);
|
|
|
_itemIdList.Clear();
|
|
|
_itemObjList.Clear();
|
|
@@ -163,6 +164,7 @@ namespace GFGGame
|
|
|
UpdateItem(_ui.target.GetChild("item" + i).asCom, i, 10);
|
|
|
}
|
|
|
}
|
|
|
+ Timers.inst.Add(0.5f, 1, UpDataTimeTouchLoaBg);
|
|
|
}
|
|
|
|
|
|
protected override void OnHide()
|
|
@@ -284,6 +286,13 @@ namespace GFGGame
|
|
|
|
|
|
private void ShowItemTips(EventContext context)
|
|
|
{
|
|
|
+ if (!_touchLoaBg)
|
|
|
+ {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ _touchLoaBg = false;
|
|
|
+ Timers.inst.Add(0.5f, 1, UpDataTimeTouchLoaBg);
|
|
|
+
|
|
|
GObject obj = context.sender as GObject;
|
|
|
int index = (int)obj.data;
|
|
|
_chooseIndex = index;
|
|
@@ -475,7 +484,7 @@ namespace GFGGame
|
|
|
}
|
|
|
|
|
|
//判断是否需要显示集齐套装界面(需要的时候晚3个定时器时间)
|
|
|
- if (count < totalCount || (count >= totalCount && _countShow > 5))
|
|
|
+ if (count <= 0 || totalCount <= 0 || count < totalCount || (count >= totalCount && _countShow > 5))
|
|
|
{
|
|
|
_recordTurnIndex.Add(index);
|
|
|
_countShow = 0;
|