Browse Source

滚动广告报错

zhaoyang 2 years ago
parent
commit
fde5848549
1 changed files with 1 additions and 2 deletions
  1. 1 2
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

+ 1 - 2
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -246,7 +246,6 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
                 _sceneObject = null;
             }
             }
-            _adIds.Clear();
             _valueBarController.OnHide();
             _valueBarController.OnHide();
             Timers.inst.Remove(Update);
             Timers.inst.Remove(Update);
             Timers.inst.Remove(CheckGuide);
             Timers.inst.Remove(CheckGuide);
@@ -836,7 +835,7 @@ namespace GFGGame
         private void UpdateBtnFirstRecharge()
         private void UpdateBtnFirstRecharge()
         {
         {
             _ui.m_btnFirstRecharge.target.visible = ActivityDataManager.Instance.firstChargeBonusStatus != ConstBonusStatus.GOT;
             _ui.m_btnFirstRecharge.target.visible = ActivityDataManager.Instance.firstChargeBonusStatus != ConstBonusStatus.GOT;
-            if(_ui.m_btnFirstRecharge.target.visible)
+            if (_ui.m_btnFirstRecharge.target.visible)
             {
             {
                 bool canget = ActivityDataManager.Instance.firstChargeBonusStatus == ConstBonusStatus.CAN_GET;
                 bool canget = ActivityDataManager.Instance.firstChargeBonusStatus == ConstBonusStatus.CAN_GET;
                 RedDotController.Instance.SetComRedDot(_ui.m_btnFirstRecharge.target, canget);
                 RedDotController.Instance.SetComRedDot(_ui.m_btnFirstRecharge.target, canget);