13 lines
346 B
GDScript
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))
|