取消免费锤子使用

This commit is contained in:
huanghaipeng 2025-11-17 11:31:43 +08:00
parent 681b1efb86
commit 21e660d77e

View File

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