Frontier-of-Hell/scripts/ui/game_duration.gd

5 lines
123 B
GDScript3
Raw Normal View History

2023-10-18 19:37:40 +02:00
extends Control
func update_duration(time: float):
$Duration/Label.text = "%d:%02d" % [floor(time / 60), int(time) % 60]