5 lines
104 B
GDScript

extends Control
func _unhandled_input(event):
if event.is_action_pressed("menu"):
visible = !visible