super_space_game/scripts/dialogue_select_button.gd
2025-12-03 22:30:37 -05:00

11 lines
245 B
GDScript

extends Button
var game = null
func _on_pressed() -> void:
get_tree().quit()
func _input(event: InputEvent) -> void:
if has_focus() and (event.is_action_pressed("interact") or event.is_action_pressed("dialogue_continue")):
_on_pressed()