This commit is contained in:
TJH 2026-05-12 10:13:59 +08:00
parent 05c98897e8
commit 659d498163

View File

@ -171,10 +171,6 @@ export class SlotBar extends Component {
});
}
protected onDestroy(): void {
this.node.targetOff(this);
}
// spinBtn有两个动画idle状态循环旋转一圈spin状态速度加快
setGameInfo(gameInfo: any) {
@ -774,6 +770,7 @@ export class SlotBar extends Component {
protected onDestroy(): void {
this.autoBtn.off(Node.EventType.TOUCH_START, this.autoAin, this);
this.autoBtn.off(Node.EventType.MOUSE_ENTER, this.autoAin, this);
this.node.targetOff(this);
this.turboBtn.off(Node.EventType.TOUCH_START, this.fastAni, this);
this.turboBtn.off(Node.EventType.MOUSE_ENTER, this.fastAni, this);