Browse Source

虎,兔游戏中限制退出

lhj 4 tháng trước cách đây
mục cha
commit
d37743b411

+ 5 - 0
luckypot_sp/assets/SubGame/slotNTigerbundle/script/FortuneTigerGameFrame.ts

@@ -19,6 +19,7 @@ import FortuneTigerTestLine from "./FortuneTigerTestLine";
 var ProtocolLoginServer = require("ProtocolLoginServer");
 var GameBase = require("GameBase");
 var ScenceManager = require("HNScenceManager");
+var topTipMsg = require("topTipMsg")
 const { ccclass, property, menu } = cc._decorator;
 export enum G51_SUB_C {
     NTIGER_STATE_REQ = 12301,
@@ -912,6 +913,10 @@ export default class FortuneTigerGameFrame  extends GameBase{//extends AbstractG
         //     topTipMsg.showTopTipMsg(LanguageKey.t("pubWords.not_exit_game"));
         //     return;
         // }
+        if (this.view.isGaming) {
+            topTipMsg.showTopTipMsg("gaming!!");
+            return
+        }
         FortuneTigerSpineIconData.ins.destroy();
         if(cc.vv.config.ReviewApk) {
             cc.game.end();

+ 5 - 0
luckypot_sp/assets/SubGame/slotRabbitbundle/script/RabbitGameFrame.ts

@@ -13,6 +13,7 @@ import RabbitSpineIconData from "./RabbitSpineIconData";
 var ProtocolLoginServer = require("ProtocolLoginServer");
 var GameBase = require("GameBase");
 var ScenceManager = require("HNScenceManager");
+var topTipMsg = require("topTipMsg")
 const { ccclass, property, menu } = cc._decorator;
 export enum G51_SUB_C {
     NRABIT_STATE_REQ = 12401,
@@ -839,6 +840,10 @@ export default class RabbitGameFrame extends GameBase {
         //     topTipMsg.showTopTipMsg(LanguageKey.t("pubWords.not_exit_game"));
         //     return;
         // }
+        if (this.view.isGaming) {
+            topTipMsg.showTopTipMsg("gaming!!");
+            return
+        }
         RabbitSpineIconData.ins.destroy();
         if(cc.vv.config.ReviewApk) {
             cc.game.end();