wip with handling outlines for activitable objects
This commit is contained in:
parent
b88ebbdf08
commit
2781b72799
3 changed files with 48 additions and 19 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue