1
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m11s

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

View File

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