From c1ad245b179608ca962571020082ffa65a9ee045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?computer=5C=E5=B0=BC=E5=8D=A1?= <203267346@qq.com> Date: Tue, 8 Jul 2025 17:21:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=93=E5=85=B7=E8=B4=AD=E4=B9=B0=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Map.ts | 48 ++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/assets/Script/Map.ts b/assets/Script/Map.ts index 8af7622..1edb51a 100644 --- a/assets/Script/Map.ts +++ b/assets/Script/Map.ts @@ -1706,15 +1706,15 @@ export default class MapConroler extends cc.Component { if (freezeBtn.getComponent("btnControl")._touch) { freezeBtn.getComponent("btnControl").setTouch(false); if (cc.fx.GameConfig.GM_INFO.freezeAmount < 1) { - if (cc.fx.GameConfig.GM_INFO.coin < 1500) { - MiniGameSdk.API.showToast("金币不足,无法购买道具"); - setTimeout(() => { - this.openShop(); - freezeBtn.getComponent("btnControl").setTouch(true); - }, 500); + // if (cc.fx.GameConfig.GM_INFO.coin < 1500) { + // MiniGameSdk.API.showToast("金币不足,无法购买道具"); + // setTimeout(() => { + // this.openShop(); + // freezeBtn.getComponent("btnControl").setTouch(true); + // }, 500); - return; - } + // return; + // } this.node.parent.parent.getChildByName("propWindow").active = true; this.node.parent.parent.parent.getComponent("SceneManager").openPropBuy("freeze"); } @@ -1835,15 +1835,15 @@ export default class MapConroler extends cc.Component { if (hammerBtn.getComponent("btnControl")._touch) { hammerBtn.getComponent("btnControl").setTouch(false); if (cc.fx.GameConfig.GM_INFO.hammerAmount < 1) { - if (cc.fx.GameConfig.GM_INFO.coin < 1500) { - MiniGameSdk.API.showToast("金币不足,无法购买道具"); - setTimeout(() => { - this.openShop(); - hammerBtn.getComponent("btnControl").setTouch(true); - }, 500); + // if (cc.fx.GameConfig.GM_INFO.coin < 1500) { + // MiniGameSdk.API.showToast("金币不足,无法购买道具"); + // setTimeout(() => { + // this.openShop(); + // hammerBtn.getComponent("btnControl").setTouch(true); + // }, 500); - return; - } + // return; + // } this.node.parent.parent.getChildByName("propWindow").active = true; this.node.parent.parent.parent.getComponent("SceneManager").openPropBuy("hammer"); } @@ -1935,15 +1935,15 @@ export default class MapConroler extends cc.Component { if (magicBtn.getComponent("btnControl")._touch) { magicBtn.getComponent("btnControl").setTouch(false); if (cc.fx.GameConfig.GM_INFO.magicAmount < 1) { - if (cc.fx.GameConfig.GM_INFO.coin < 1500) { - MiniGameSdk.API.showToast("金币不足,无法购买道具"); - setTimeout(() => { - this.openShop(); - magicBtn.getComponent("btnControl").setTouch(true); - }, 500); + // if (cc.fx.GameConfig.GM_INFO.coin < 1500) { + // MiniGameSdk.API.showToast("金币不足,无法购买道具"); + // setTimeout(() => { + // this.openShop(); + // magicBtn.getComponent("btnControl").setTouch(true); + // }, 500); - return; - } + // return; + // } this.node.parent.parent.getChildByName("propWindow").active = true; this.node.parent.parent.parent.getComponent("SceneManager").openPropBuy("magic"); // MiniGameSdk.API.showToast("魔法棒数量不足,自动购买魔法棒");