فهرست منبع

摘星双击展示页面出现错误问题

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

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Controller/GMController.cs

@@ -83,6 +83,7 @@ namespace GFGGame
             //LogUtil.LogDev("ShowGmView");
             if (ViewManager.isViewOpen(typeof(PhotographView).FullName)) return;
             if (ViewManager.isViewOpen(typeof(StoryDialogView).FullName)) return;
+            if (ViewManager.isViewOpen(typeof(LuckyBoxBonusShowView).FullName)) return;
             if (GameConfig.showGM >= 1)
             {
                 ViewManager.Show<GMPanelView>();

+ 8 - 6
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusShowView.cs

@@ -321,11 +321,14 @@ namespace GFGGame
 
         private void OnClickLoaBg(EventContext context)
         {
-            GRoot.inst.touchable = false;
-
-            //if (context.inputEvent.clickCount > 1) {
-            //    return; 
-            //}
+            ET.Log.Debug("打印测试======context.inputEvent.clickCount==========" + context.inputEvent.clickCount);
+            ET.Log.Debug("打印测试======context.inputEvent.isDoubleClick==========" + context.inputEvent.isDoubleClick);
+            ET.Log.Debug("打印测试======context.inputEvent.button==========" + context.inputEvent.button);
+            ET.Log.Debug("打印测试======Stage.inst.touchCount=========" + Stage.inst.touchCount);
+            if (context.inputEvent.button == 1 && Stage.inst.touchCount >= 2)
+            {
+                return;
+            }
 
             if (_recordOpenIndex.Count >= _rewardList.Count)
             {
@@ -344,7 +347,6 @@ namespace GFGGame
                     }
                 }
             }
-            GRoot.inst.touchable = true;
         }
 
         private void OnClickBtnPass()