fixed bug with animation not showing up to date state of the outfit

This commit is contained in:
Piotr 'pwh' Hanusiak
2022-03-17 15:49:05 +01:00
parent a3fcf2dc3f
commit 744c15920b
3 changed files with 28 additions and 7 deletions
@@ -28,8 +28,8 @@ export class WokaBodyPartSlot extends GridItem {
public readonly SIZE: number = 50;
constructor(scene: Phaser.Scene, x: number, y: number, config: WokaBodyPartSlotConfig) {
super(scene, undefined, { x, y });
constructor(scene: Phaser.Scene, x: number, y: number, config: WokaBodyPartSlotConfig, id?: number) {
super(scene, `${id}`, { x, y });
this.config = config;