Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scene scene = this.root.getScene();
- scene.addEventHandler(KeyEvent.KEY_PRESSED, event -> gameManager.restartGame(event));
- scene.removeEventHandler(KeyEvent.KEY_RELEASED, event -> gameManager.restartGame(event));
Add Comment
Please, Sign In to add comment