1
Fork 0
mirror of https://github.com/Steffo99/cinnos.git synced 2024-11-21 23:54:20 +00:00
cinnos/GameTimer.gd
2023-11-25 21:29:45 +01:00

19 lines
310 B
GDScript

extends Node
class_name GameTimer
var current_time := 0.0
var stopped: bool = false
@onready var parent: Label = get_parent()
func _process(delta):
if not stopped:
current_time += delta
parent.text = "%0.2f" % current_time
func _on_dialog_6_body_entered(body):
if body is Player:
stopped = true