This commit is contained in:
parent
05c98897e8
commit
d5719f29f5
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user