cawez_puzzlebox/ui/button_restart.gd
2024-06-22 18:04:25 -04:00

13 lines
306 B
GDScript

extends TextureButton
# Called when the node enters the scene tree for the first time.
func _ready():
pressed.connect(self._button_pressed)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _button_pressed():
Globals.restart = true
get_node("../../..").opaque = false