|
@@ -50,12 +50,15 @@ namespace GFGGame
|
|
protected override void OnShown()
|
|
protected override void OnShown()
|
|
{
|
|
{
|
|
base.OnShown();
|
|
base.OnShown();
|
|
|
|
+ _ui.m_loaBg.touchable = false;
|
|
if (this.viewData != null) {
|
|
if (this.viewData != null) {
|
|
suitID = (int)(this.viewData as object[])[0];
|
|
suitID = (int)(this.viewData as object[])[0];
|
|
countSuitId = (int)(this.viewData as object[])[1];
|
|
countSuitId = (int)(this.viewData as object[])[1];
|
|
}
|
|
}
|
|
UpdateView();
|
|
UpdateView();
|
|
|
|
+ Timers.inst.Add(0.5f, 1, OnTimerClick);
|
|
}
|
|
}
|
|
|
|
+
|
|
private void UpdateView()
|
|
private void UpdateView()
|
|
{
|
|
{
|
|
DressUpMenuSuitDataManager.GetSuitProgressBySuitId(suitID, out count, out totalCount);
|
|
DressUpMenuSuitDataManager.GetSuitProgressBySuitId(suitID, out count, out totalCount);
|
|
@@ -70,8 +73,13 @@ namespace GFGGame
|
|
_ui.m_probar.value = count - 1;
|
|
_ui.m_probar.value = count - 1;
|
|
_ui.m_t_open.Play();
|
|
_ui.m_t_open.Play();
|
|
_ui.m_probar.TweenValue(count, 0.7f);
|
|
_ui.m_probar.TweenValue(count, 0.7f);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ private void OnTimerClick(object param)
|
|
|
|
+ {
|
|
|
|
+ _ui.m_loaBg.touchable = true;
|
|
}
|
|
}
|
|
|
|
+
|
|
private void OnClickBg()
|
|
private void OnClickBg()
|
|
{
|
|
{
|
|
if(!GetSuitItemController.isAuto)
|
|
if(!GetSuitItemController.isAuto)
|
|
@@ -89,6 +97,8 @@ namespace GFGGame
|
|
{
|
|
{
|
|
_ui.m_probar.max = 0;
|
|
_ui.m_probar.max = 0;
|
|
_ui.m_probar.value = 0;
|
|
_ui.m_probar.value = 0;
|
|
|
|
+ Timers.inst.Remove(OnTimerClick);
|
|
|
|
+ _ui.m_loaBg.touchable = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|