7 lines
183 B
GDScript
7 lines
183 B
GDScript
# scripts/game.gd — autoloaded as "Game"
|
|
extends Node
|
|
|
|
func _unhandled_input(event: InputEvent) -> void:
|
|
if event.is_action_pressed("restart"):
|
|
get_tree().reload_current_scene()
|