match-3 grid generation
make game scene modular global debug mode
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
extends Button
|
||||
|
||||
func _ready():
|
||||
text = "Debug: OFF"
|
||||
pressed.connect(_on_pressed)
|
||||
DebugManager.debug_toggled.connect(_on_debug_toggled)
|
||||
|
||||
# Initialize with current debug state
|
||||
var current_state = DebugManager.is_debug_enabled()
|
||||
text = "Debug: " + ("ON" if current_state else "OFF")
|
||||
|
||||
func _on_pressed():
|
||||
DebugManager.toggle_debug()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user