call activate() method on space key up
This commit is contained in:
@@ -54,6 +54,7 @@ export class GameSceneUserInputHandler implements UserInputHandlerInterface {
|
||||
|
||||
public handleSpaceKeyUpEvent(event: Event): Event {
|
||||
this.gameScene.activateOutlinedItem();
|
||||
this.gameScene.getNearestActivatableObject()?.activate();
|
||||
return event;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user