updated phaser to version 3.51 and fixed the BC
This commit is contained in:
parent
178af22280
commit
1359fbe977
8 changed files with 22 additions and 24 deletions
|
@ -227,7 +227,7 @@ export abstract class Character extends Container {
|
|||
}, 3000)
|
||||
}
|
||||
|
||||
destroy(fromScene?: boolean): void {
|
||||
destroy(): void {
|
||||
if (this.scene) {
|
||||
this.scene.events.removeListener('postupdate', this.postupdate.bind(this));
|
||||
}
|
||||
|
@ -236,7 +236,7 @@ export abstract class Character extends Container {
|
|||
this.scene.sys.updateList.remove(sprite);
|
||||
}
|
||||
}
|
||||
super.destroy(fromScene);
|
||||
super.destroy();
|
||||
this.playerName.destroy();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue