Browse Source

田野调查购买次数更新

zhaoyang 3 years ago
parent
commit
8d65272bc3
1 changed files with 4 additions and 3 deletions
  1. 4 3
      GameClient/Assets/Game/HotUpdate/Views/Studio/StudioBaseView.cs

+ 4 - 3
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioBaseView.cs

@@ -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()