|
@@ -20,6 +20,7 @@ namespace GFGGame
|
|
|
public override void Dispose()
|
|
|
{
|
|
|
base.Dispose();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
protected override void OnInit()
|
|
@@ -38,8 +39,7 @@ namespace GFGGame
|
|
|
|
|
|
_ui.m_btnBuy.onClick.Add(OnCliclBtnBuy);
|
|
|
|
|
|
- EventAgent.AddEventListener(ConstMessage.BUY_STUDIO_PLAY_TIMES, UpdateView);
|
|
|
- EventAgent.AddEventListener(ConstMessage.NOTICE_STUDIO_PLAY_TIMES, UpdateView);
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|
|
@@ -49,7 +49,8 @@ namespace GFGGame
|
|
|
_valueBarController.OnShown();
|
|
|
UpdateView();
|
|
|
Timers.inst.Add(1, 0, UpdateShowTime);
|
|
|
-
|
|
|
+ EventAgent.AddEventListener(ConstMessage.BUY_STUDIO_PLAY_TIMES, UpdateView);
|
|
|
+ EventAgent.AddEventListener(ConstMessage.NOTICE_STUDIO_PLAY_TIMES, UpdateView);
|
|
|
}
|
|
|
|
|
|
protected override void OnHide()
|