add companion only on local player
This commit is contained in:
parent
5a91e15580
commit
2ad712807b
3 changed files with 53 additions and 28 deletions
|
@ -69,11 +69,9 @@ export abstract class Character extends Container {
|
|||
this.setDepth(-1);
|
||||
|
||||
this.playAnimation(direction, moving);
|
||||
|
||||
this.addCompanion();
|
||||
}
|
||||
|
||||
private addCompanion(): void {
|
||||
public addCompanion(): void {
|
||||
this.companion = new Companion(this.scene, this.x, this.y);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue