|
@@ -149,7 +149,7 @@ namespace GFGGame
|
|
|
_ui.m_comResult.m_t0.Play(AddExp);
|
|
|
}
|
|
|
|
|
|
- protected override void OnHide()
|
|
|
+ protected override async void OnHide()
|
|
|
{
|
|
|
base.OnHide();
|
|
|
if (_sceneObject != null)
|
|
@@ -161,11 +161,8 @@ namespace GFGGame
|
|
|
MusicManager.Instance.Play(ResPathUtil.GetMusicPath(ConstMusicName.DEFAULT));
|
|
|
_ui.m_comResult.m_t1.Play();
|
|
|
_ui.m_comExpBar.m_proExp.m_comHolder.target.width = 0;
|
|
|
- }
|
|
|
|
|
|
- private async void OnClickBtnClose(object param)
|
|
|
- {
|
|
|
- this.Hide();
|
|
|
+
|
|
|
if (InstanceZonesDataManager.FightScene == ConstInstanceZonesType.Field)
|
|
|
{
|
|
|
Timers.inst.Remove(OnClickBtnClose);
|
|
@@ -195,6 +192,11 @@ namespace GFGGame
|
|
|
InstanceZonesDataManager.currentCardId = -1;
|
|
|
}
|
|
|
|
|
|
+ private void OnClickBtnClose(object param)
|
|
|
+ {
|
|
|
+ this.Hide();
|
|
|
+ }
|
|
|
+
|
|
|
private void AddExp()
|
|
|
{
|
|
|
float exp = GameGlobal.myNumericComponent.GetAsInt(NumericType.Exp);
|