Guest User

Untitled

a guest
Dec 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. Scene scene = this.root.getScene();
  2.  
  3. scene.addEventHandler(KeyEvent.KEY_PRESSED, event -> gameManager.restartGame(event));
  4. scene.removeEventHandler(KeyEvent.KEY_RELEASED, event -> gameManager.restartGame(event));
Add Comment
Please, Sign In to add comment