Pārlūkot izejas kodu

[phaser] Fix preDestroy in SpineGameObject.

Mario Zechner 2 gadi atpakaļ
vecāks
revīzija
d24787b81e
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      spine-ts/spine-phaser/src/SpineGameObject.ts

+ 1 - 3
spine-ts/spine-phaser/src/SpineGameObject.ts

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