取消免费锤子使用
This commit is contained in:
parent
681b1efb86
commit
21e660d77e
|
|
@ -3029,6 +3029,15 @@ export default class MapConroler extends cc.Component {
|
||||||
this.hammer = false;
|
this.hammer = false;
|
||||||
this.ishammer = false;
|
this.ishammer = false;
|
||||||
this.pause = 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);
|
hammerBtn.getComponent("btnControl").setTouch(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user