brackeys-12/ui/counters.gd
2024-09-14 23:23:38 -04:00

11 lines
160 B
GDScript

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