소스 검색

引导出现时不要弹出互推插屏

kaka 5 년 전
부모
커밋
10fd8b0043
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      assets/script/game/data/module/MoreGameData.ts

+ 4 - 0
assets/script/game/data/module/MoreGameData.ts

@@ -196,6 +196,10 @@ export class MoreGameData extends Data {
 
     /** 弹出互推红包弹窗 */
     popMoreGamePopNode() {
+        if (mk.guide.isGuiding) {
+            return;
+        }
+
         if (Math.random() <= gData.gameData.configs.ServerConfig.popMoreGame) {
             mk.ui.openPanel('module/moreGame/moreGamePopNode');
         }