cawez_puzzlebox/ui/button_skip.gd
2024-07-01 11:21:22 -04:00

14 lines
392 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():
if (Input.mouse_mode != Input.MOUSE_MODE_CAPTURED) && LevelLoader.current_index != 0:
Globals.next = true
get_node("../../..").opaque = false