From 21e660d77e1986fba56d94e6e2e3c9af1bed0953 Mon Sep 17 00:00:00 2001 From: huanghaipeng Date: Mon, 17 Nov 2025 11:31:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=85=8D=E8=B4=B9=E9=94=A4?= =?UTF-8?q?=E5=AD=90=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Map.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/assets/Script/Map.ts b/assets/Script/Map.ts index 8dcb533..eda2af0 100644 --- a/assets/Script/Map.ts +++ b/assets/Script/Map.ts @@ -3029,6 +3029,15 @@ export default class MapConroler extends cc.Component { this.hammer = false; this.ishammer = false; this.pause = false; + + // 如果是使用连胜免费锤子,则不隐藏按钮并恢复其状态 + if (this.hammerSpecial) { + console.log("取消的是连胜免费锤子"); + this.hammerSpecial = false; + this.winStreakBtn.node.active = true; + this.destroyBtn.node.getChildByName("mul10").opacity = 0; + } + hammerBtn.getComponent("btnControl").setTouch(true); }