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); }