Globalized variables, team member consistency
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
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():
|
||||
if Global.teamScreenVisible == false:
|
||||
Global.teamSelectionVisible = false
|
||||
Global.teamScreenVisible = true
|
||||
else:
|
||||
Global.teamScreenVisible = false
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user