From 058cdfc88a9356ef64c54aa680496b63e1db44b2 Mon Sep 17 00:00:00 2001 From: huanghaipeng Date: Wed, 15 Oct 2025 10:24:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E4=BA=AB=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E6=8F=90=E7=A4=BA=20=E4=BF=AE=E6=94=B9=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E5=BE=97=E9=AD=94=E6=9D=96=E5=90=8E=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E9=94=A4=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Map.ts | 4 ++-- assets/Script/module/Tool/GameTool.ts | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/assets/Script/Map.ts b/assets/Script/Map.ts index b5afa2d..6ae7457 100644 --- a/assets/Script/Map.ts +++ b/assets/Script/Map.ts @@ -2689,7 +2689,7 @@ export default class MapConroler extends cc.Component { return; } this.lastHammerTime = Date.now(); - if ((this.magicMask.active == true && this.magicMask.opacity == 254) || this.timeNumber <= 1 || this.gameOver || this.gameWin) { + if ((this.magicMask.active == true && this.magicMask.opacity == 255) || this.timeNumber <= 1 || this.gameOver || this.gameWin) { return; } let hammerBtn = this.node.parent.getChildByName("Bottom").getChildByName("destroyBtn"); @@ -2866,8 +2866,8 @@ export default class MapConroler extends cc.Component { } const timestamp = Date.now(); this.magicMask.active = true; - this.magicMask.opacity = 254; setTimeout(() => { + this.magicMask.opacity = 254; // this.magicMask.active = true; ////false // magicBtn.getComponent("btnControl").setTouch(true); cc.fx.GameTool.setGray(this.magicBtn.node, true); diff --git a/assets/Script/module/Tool/GameTool.ts b/assets/Script/module/Tool/GameTool.ts index cc99a0c..cdc0cf2 100644 --- a/assets/Script/module/Tool/GameTool.ts +++ b/assets/Script/module/Tool/GameTool.ts @@ -1361,6 +1361,11 @@ var GameTool = { console.log('分享失败'); // callback(false); // 回调表示分享失败 + wx.showToast({ + title: '请分享给爱玩游戏的朋友,感谢!', + icon: 'none', + duration: 2000 + }); }; if (cc.sys.platform === cc.sys.WECHAT_GAME) {