cawez_puzzlebox/ui/button_play.gd
2024-06-19 20:20:38 -04:00

10 lines
303 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():
get_node("../../..").opaque = !get_node("../../..").opaque