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("魔法棒数量不足,自动购买魔法棒");