Astromovida/scripts/event.gd
Gerard Gascón 18efc36800 init
2025-04-24 17:06:24 +02:00

16 lines
420 B
GDScript

extends Node
signal event_completed
signal event_failed
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
if (Input.is_action_just_pressed("ui_accept")):
event_completed.emit()
if (Input.is_action_just_pressed("ui_cancel")):
event_failed.emit()