mirror of
https://github.com/Steffo99/cinnos.git
synced 2024-11-29 03:24:21 +00:00
13 lines
188 B
GDScript3
13 lines
188 B
GDScript3
|
extends Node
|
||
|
class_name GameTimer
|
||
|
|
||
|
|
||
|
var current_time := 0.0
|
||
|
|
||
|
@onready var parent: Label = get_parent()
|
||
|
|
||
|
|
||
|
func _process(delta):
|
||
|
current_time += delta
|
||
|
parent.text = "%0.2f" % current_time
|