1
Fork 0
mirror of https://github.com/Cookie-CHR/OfficeMadness-LD51.git synced 2024-11-23 07:04:19 +00:00
office-madness/Scripts/Time_Display.gd
2022-10-04 12:03:41 +02:00

12 lines
323 B
GDScript

extends Label
# Called when the node enters the scene tree for the first time.
func _ready():
var seconds = GlobalTimer.seconds_passed%60
var minutes = (GlobalTimer.seconds_passed/60)%60
var string = ""
if minutes > 0:
string += str(minutes)+" minutes and"
string += str(seconds)+" seconds"
self.text = string