浏览代码

抽卡获得弹框有几率卡在屏幕中间不弹出来

zhaoyang 3 年之前
父节点
当前提交
068482b216
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxCardView.cs

+ 7 - 2
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxCardView.cs

@@ -90,11 +90,16 @@ namespace GFGGame
         }
         private void OnClickBtnPass()
         {
-            _ui.m_t_close.Stop(true, false);
-            _ui.m_t_open.Stop(true, false);
+
 
             ViewManager.Show(ViewName.LUCKY_BOX_BONUS_VIEW, new object[] { (this.viewData as object[])[0], _rewardList });
             this.Hide();
         }
+        protected override void OnHide()
+        {
+            _ui.m_t_close.Stop(true, false);
+            _ui.m_t_open.Stop(true, false);
+            base.OnHide();
+        }
     }
 }