call activate() method on space key up

This commit is contained in:
Hanusiak Piotr 2022-01-26 13:16:52 +01:00
parent 3af6461c01
commit f42c7564b9
2 changed files with 7 additions and 2 deletions

View file

@ -54,6 +54,7 @@ export class GameSceneUserInputHandler implements UserInputHandlerInterface {
public handleSpaceKeyUpEvent(event: Event): Event {
this.gameScene.activateOutlinedItem();
this.gameScene.getNearestActivatableObject()?.activate();
return event;
}
}