فهرست منبع

摘星单抽卡顿问题

huangxiaoyue 1 سال پیش
والد
کامیت
b41fec2bca

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Constant/ConstMessage.cs

@@ -181,6 +181,9 @@ namespace GFGGame
         //摘星抽奖等待动画加载
         public const string LUCKY_BOX_ANIMATION_WAIT = "LUCKY_BOX_ANIMATION_WAIT";
 
+        //摘星抽奖展示界面关闭
+        public const string LUCKY_BOX_SHOW_VIEW_CLOSE = "LUCKY_BOX_SHOW_VIEW_CLOSE";
+
         //词牌升级刷新
         public const string CARD_LEVEL_UP = "CARD_LEVEL_UP";
 

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/GetSuitItemVIew.cs

@@ -86,6 +86,7 @@ namespace GFGGame
             //else
             //{
                 Hide();
+                EventAgent.DispatchEvent(ConstMessage.LUCKY_BOX_SHOW_VIEW_CLOSE);
             //}
         }
 

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/SuitItemView.cs

@@ -79,6 +79,7 @@ namespace GFGGame
                     ViewManager.Show<GetSuitItemVIew>(suitID);
                 }
                 this.Hide();
+                EventAgent.DispatchEvent(ConstMessage.LUCKY_BOX_SHOW_VIEW_CLOSE);
             }
         }
 

+ 7 - 0
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusShowView.cs

@@ -98,6 +98,7 @@ namespace GFGGame
             base.AddEventListener();
             EventAgent.AddEventListener(ConstMessage.LUCKY_BOX_REWARD_SHOW, ReferNextShow);
             EventAgent.AddEventListener(ConstMessage.LUCKY_BOX_ANIMATION_WAIT, SetAnimationWait);
+            EventAgent.AddEventListener(ConstMessage.LUCKY_BOX_SHOW_VIEW_CLOSE, OthershowViewClose);
         }
 
         protected override void RemoveEventListener()
@@ -105,6 +106,12 @@ namespace GFGGame
             base.RemoveEventListener();
             EventAgent.RemoveEventListener(ConstMessage.LUCKY_BOX_REWARD_SHOW, ReferNextShow);
             EventAgent.RemoveEventListener(ConstMessage.LUCKY_BOX_ANIMATION_WAIT, SetAnimationWait);
+            EventAgent.RemoveEventListener(ConstMessage.LUCKY_BOX_SHOW_VIEW_CLOSE, OthershowViewClose);
+        }
+
+        protected void OthershowViewClose()
+        {
+            _ui.m_touchFlipOpen.touchable = false;
         }
 
         protected void ReferNextShow()