brackeys-12/ui/counters.gd
2024-09-13 21:31:14 -04:00

11 lines
155 B
GDScript

extends Label
@export var key: String
func _ready() -> void:
Triggerer.listen(key, _on_value_change)
func _on_value_change(data):
text = data.value