[phaser] Fix preDestroy in SpineGameObject.

This commit is contained in:
Mario Zechner 2023-04-21 13:54:28 +02:00
parent 2900605300
commit d24787b81e

View File

@ -178,9 +178,7 @@ export class SpineGameObject extends ComputedSizeMixin(DepthMixin(FlipMixin(Scro
this.skeleton.updateWorldTransform();
}
preDestroy () {
this.skeleton = null;
this.animationState = null;
preDestroy () {
// FIXME tear down any event emitters
}