Code reorganizing
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
extends TextureButton
|
||||
|
||||
signal decision_made
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
self.pressed.connect(self._on_green_button_pressed)
|
||||
set_disabled(true)
|
||||
|
||||
func _on_green_button_pressed():
|
||||
if Globals.buttons_activated:
|
||||
decision_made.emit("release")
|
||||
set_toggle_mode(true)
|
||||
set_pressed_no_signal(true)
|
||||
Reference in New Issue
Block a user