Files
ClickerGacha/User Interface/TeamButton.gd
2024-06-18 11:33:55 -04:00

24 lines
539 B
GDScript

extends Button
# Called when the node enters the scene tree for the first time.
func _ready():
self.connect("pressed", Callable(self, "_on_Button_pressed"))
# Function to handle the button press
func _on_Button_pressed():
#var new_scene = load("res://teamSelection.tscn")
get_tree().change_scene_to_file("res://Scenes/team.tscn")
#if Global.teamScreenVisible == false:
#Global.teamSelectionVisible = false
#Global.teamScreenVisible = true
#Global.bossScreenVisible = false
#else:
#Global.teamScreenVisible = false