mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 12:49:25 +08:00
fix: CameraAnimation的动画垃圾回收
This commit is contained in:
parent
886d1178dd
commit
a1fe6e9d00
@ -597,5 +597,9 @@ export class CameraAnimation extends EventEmitter<CameraAnimationEvent> {
|
||||
destroy() {
|
||||
this.camera.binded.removeTicker(this.delegation);
|
||||
this.camera.stopAllAnimates();
|
||||
this.animateMap.forEach(v => {
|
||||
v.animation.ticker.destroy();
|
||||
});
|
||||
this.animateMap.clear();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user