wip with handling outlines for activitable objects

This commit is contained in:
Hanusiak Piotr 2022-01-26 17:14:22 +01:00
parent b88ebbdf08
commit 2781b72799
3 changed files with 48 additions and 19 deletions

View file

@ -105,13 +105,6 @@ export abstract class Character extends Container implements OutlineableInterfac
hitAreaCallback: Phaser.Geom.Circle.Contains, //eslint-disable-line @typescript-eslint/unbound-method
useHandCursor: true,
});
this.on("pointerover", () => {
this.outlineColorStore.pointerOver();
});
this.on("pointerout", () => {
this.outlineColorStore.pointerOut();
});
}
this.outlineColorStoreUnsubscribe = this.outlineColorStore.subscribe((color) => {