Improve movement

This commit is contained in:
schmelczerandras 2020-10-27 10:32:37 +01:00
commit c9eae3adeb
2 changed files with 227 additions and 279 deletions

View file

@ -196,7 +196,7 @@ export class NPC extends PlayerBase {
this.timeSinceLastFindShootTarget = 0;
}
this.character?.handleMovementAction(new MoveActionCommand(this.direction, false));
this.character?.handleMovementAction(new MoveActionCommand(this.direction));
}
protected createCharacter() {

View file

@ -69,6 +69,6 @@ export abstract class PlayerBase extends CommandReceiver {
}
public destroy() {
this.character?.destroy();
this.character?.kill();
}
}