brackeys-12/ui/number.gd

14 lines
346 B
GDScript3
Raw Normal View History

2024-09-10 13:03:27 +00:00
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))