Browse Source

抽奖点击跳过后自动播放展示时禁止点击关闭

huangxiaoyue 1 year ago
parent
commit
94d54ae6d7

+ 9 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxNewCardView.cs

@@ -30,7 +30,7 @@ namespace GFGGame
             this.viewCom = _ui.target;
             isfullScreen = true;
 
-            _ui.m_loaBg.onClick.Add(Hide);
+            _ui.m_loaBg.onClick.Add(OnClickBg);
         }
         protected override void AddEventListener()
         {
@@ -62,5 +62,13 @@ namespace GFGGame
 
         }
 
+        private void OnClickBg()
+        {
+            if (!GetSuitItemController.isAuto)
+            {
+                this.Hide();
+            }
+        }
+
     }
 }

+ 9 - 6
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxNewDressView.cs

@@ -173,12 +173,15 @@ namespace GFGGame
         {
             //_ui.m_t_close.Play(() =>
             //{
-                //_ui.m_comCard.m_holder.visible = false;
-                //_ui.m_comCard.m_holder1.visible = false;
-                //if (_newRewardList.Count == 0 && _oldRewardList.Count == 0)
-                //{
-                    this.Hide();
-                    EventAgent.DispatchEvent(ConstMessage.LUCKY_BOX_REWARD_SHOW);
+            //_ui.m_comCard.m_holder.visible = false;
+            //_ui.m_comCard.m_holder1.visible = false;
+            //if (_newRewardList.Count == 0 && _oldRewardList.Count == 0)
+            //{
+            if (!GetSuitItemController.isAuto)
+            {
+                this.Hide();
+                EventAgent.DispatchEvent(ConstMessage.LUCKY_BOX_REWARD_SHOW);
+            }
             //    }
             //    else {
             //        _ui.m_t_open.Play();