9 lines
190 B
GDScript3
9 lines
190 B
GDScript3
|
extends Node
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready():
|
||
|
self.toggled.connect(on_toggle)
|
||
|
|
||
|
func on_toggle(state: bool):
|
||
|
Global.loop_changed.emit(state)
|