14 lines
346 B
GDScript3
14 lines
346 B
GDScript3
|
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))
|