brackeys-12/ui/number.gd
2024-09-10 16:03:27 +03:00

13 lines
346 B
GDScript

extends Label
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
var floodlevel = Persister.get_value("flood_level")
if floodlevel:
set_text(str(floodlevel))
else:
set_text(str(0))