浏览代码

虎,兔,退出游戏前手动销毁iconData

lhj 4 月之前
父节点
当前提交
1bfd8d4015

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

@@ -13,6 +13,7 @@ import HttpUtils from "../../../SubGamePublic/PG_Public/src/net/HttpUtils";
 // import { SocketUtils } from "../../../SubGamePublic/PG_Public/src/net/SocketUtils";
 import { $CMD_FortuneTiger } from "./FortuneTigerConst";
 import FortuneTigerGameFrameView from "./FortuneTigerGameFrameView";
+import FortuneTigerSpineIconData from "./FortuneTigerSpineIconData";
 import FortuneTigerTestLine from "./FortuneTigerTestLine";
 
 var ProtocolLoginServer = require("ProtocolLoginServer");
@@ -911,6 +912,7 @@ export default class FortuneTigerGameFrame  extends GameBase{//extends AbstractG
         //     topTipMsg.showTopTipMsg(LanguageKey.t("pubWords.not_exit_game"));
         //     return;
         // }
+        FortuneTigerSpineIconData.ins.destroy();
         if(cc.vv.config.ReviewApk) {
             cc.game.end();
             return;

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

@@ -8,6 +8,7 @@ import HttpUtils from "../../../SubGamePublic/PG_Public/src/net/HttpUtils";
 import { TimeUtils } from "../../../SubGamePublic/PG_Public/Script/lib/utils/TimeUtils";
 import { qp } from "../../../SubGamePublic/PG_Public/Script/lib/define2";
 import RabbitTestLine from "./RabbitTestLine";
+import RabbitSpineIconData from "./RabbitSpineIconData";
 
 var ProtocolLoginServer = require("ProtocolLoginServer");
 var GameBase = require("GameBase");
@@ -838,6 +839,7 @@ export default class RabbitGameFrame extends GameBase {
         //     topTipMsg.showTopTipMsg(LanguageKey.t("pubWords.not_exit_game"));
         //     return;
         // }
+        RabbitSpineIconData.ins.destroy();
         if(cc.vv.config.ReviewApk) {
             cc.game.end();
             return;