call activate() method on space key up
This commit is contained in:
parent
3af6461c01
commit
f42c7564b9
2 changed files with 7 additions and 2 deletions
|
@ -54,6 +54,7 @@ export class GameSceneUserInputHandler implements UserInputHandlerInterface {
|
|||
|
||||
public handleSpaceKeyUpEvent(event: Event): Event {
|
||||
this.gameScene.activateOutlinedItem();
|
||||
this.gameScene.getNearestActivatableObject()?.activate();
|
||||
return event;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue