improvements on svelte store + handling
This commit is contained in:
@@ -84,17 +84,4 @@ export class Player extends Character {
|
||||
public isMoving(): boolean {
|
||||
return this.wasMoving;
|
||||
}
|
||||
|
||||
playEmote(emote: string) {
|
||||
super.playEmote(emote);
|
||||
emoteMenuStore.set(false);
|
||||
}
|
||||
|
||||
openOrCloseEmoteMenu() {
|
||||
if (get(emoteMenuStore)) {
|
||||
emoteMenuStore.set(false);
|
||||
} else {
|
||||
emoteMenuStore.set(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user