fixed bug with animation not showing up to date state of the outfit
This commit is contained in:
@@ -79,6 +79,7 @@ export class CustomWokaPreviewer extends Phaser.GameObjects.Container {
|
||||
}
|
||||
|
||||
public updateSprite(textureKey: string, bodyPart: CustomWokaBodyPart): void {
|
||||
this.sprites[bodyPart].anims.stop();
|
||||
this.sprites[bodyPart].setTexture(textureKey).setVisible(textureKey !== "");
|
||||
if (textureKey === "") {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user