|
@@ -41,6 +41,7 @@ namespace GFGGame
|
|
|
this.viewCom = _ui.target;
|
|
|
isfullScreen = true;
|
|
|
_ui.m_loaBg.onTouchBegin.Add(OnClickBg);
|
|
|
+ _ui.m_probar.max = 0;
|
|
|
|
|
|
_effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_topEffect, "ui_LuckyBox", "SJJD_CradUp");
|
|
|
_effectUI2 = EffectUIPool.CreateEffectUI(_ui.m_probarEffect, "ui_LuckyBox", "SJJD_CradUP_once");
|
|
@@ -66,8 +67,9 @@ namespace GFGGame
|
|
|
_ui.m_icon.url = ResPathUtil.GetFieldGuideIconPath(suitCfg.res);
|
|
|
}
|
|
|
_ui.m_probar.max = totalCount;
|
|
|
- _ui.m_probar.value = count;
|
|
|
+ _ui.m_probar.value = count - 1;
|
|
|
_ui.m_t_open.Play();
|
|
|
+ _ui.m_probar.TweenValue(count, 0.7f);
|
|
|
|
|
|
}
|
|
|
private void OnClickBg()
|
|
@@ -85,7 +87,8 @@ namespace GFGGame
|
|
|
|
|
|
protected override void OnHide()
|
|
|
{
|
|
|
-
|
|
|
+ _ui.m_probar.max = 0;
|
|
|
+ _ui.m_probar.value = 0;
|
|
|
}
|
|
|
}
|
|
|
}
|