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) {