7 lines
122 B
GDScript
7 lines
122 B
GDScript
extends Node
|
|
|
|
|
|
func _unhandled_input(event: InputEvent) -> void:
|
|
if event.is_action_pressed("menu"):
|
|
get_tree().quit()
|