Improve movement
This commit is contained in:
parent
7e188c2b9a
commit
c9eae3adeb
2 changed files with 227 additions and 279 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -69,6 +69,6 @@ export abstract class PlayerBase extends CommandReceiver {
|
|||
}
|
||||
|
||||
public destroy() {
|
||||
this.character?.destroy();
|
||||
this.character?.kill();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue