|
@@ -13,7 +13,8 @@ namespace GFGGame
|
|
private int openCount = 0;
|
|
private int openCount = 0;
|
|
private List<ItemData> newItemList = new List<ItemData>();
|
|
private List<ItemData> newItemList = new List<ItemData>();
|
|
private List<int> newCardList = new List<int>();
|
|
private List<int> newCardList = new List<int>();
|
|
- private List<int> openIndexList = new List<int>();
|
|
|
|
|
|
+ private int openIndex = 0;
|
|
|
|
+ // private List<int> openIndexList = new List<int>();
|
|
|
|
|
|
private List<GameObject> _effects = new List<GameObject>();
|
|
private List<GameObject> _effects = new List<GameObject>();
|
|
private List<GoWrapper> _wrappers = new List<GoWrapper>();
|
|
private List<GoWrapper> _wrappers = new List<GoWrapper>();
|
|
@@ -86,6 +87,7 @@ namespace GFGGame
|
|
// _ui.m_itemOne.target.visible = false;
|
|
// _ui.m_itemOne.target.visible = false;
|
|
_ui.m_t1.Play();
|
|
_ui.m_t1.Play();
|
|
openCount = 0;
|
|
openCount = 0;
|
|
|
|
+ openIndex = 0;
|
|
Timers.inst.Remove(UpdateTime);
|
|
Timers.inst.Remove(UpdateTime);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -262,18 +264,19 @@ namespace GFGGame
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- Timers.inst.Add(0.5f, itemList.Count, UpdateTime);
|
|
|
|
|
|
+ Timers.inst.Add(0.3f, itemList.Count, UpdateTime);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
private void UpdateTime(object param)
|
|
private void UpdateTime(object param)
|
|
{
|
|
{
|
|
- GComponent component = _ui.target.GetChild("item" + openCount).asCom;
|
|
|
|
|
|
+ GComponent component = _ui.target.GetChild("item" + openIndex).asCom;
|
|
Transition transition = component.GetTransition("t1");
|
|
Transition transition = component.GetTransition("t1");
|
|
GComponent comIcon = component.GetChild("comIcon").asCom;
|
|
GComponent comIcon = component.GetChild("comIcon").asCom;
|
|
GImage imgNew = comIcon.GetChild("imgNew").asImage;
|
|
GImage imgNew = comIcon.GetChild("imgNew").asImage;
|
|
- openCount++;
|
|
|
|
|
|
+ openIndex++;
|
|
if (transition.playing || comIcon.skew == Vector2.zero) return;
|
|
if (transition.playing || comIcon.skew == Vector2.zero) return;
|
|
|
|
+ openCount++;
|
|
if (imgNew.visible)
|
|
if (imgNew.visible)
|
|
{
|
|
{
|
|
ItemData itemData = component.data as ItemData;
|
|
ItemData itemData = component.data as ItemData;
|