1
Fork 0
mirror of https://github.com/Cookie-CHR/OfficeMadness-LD51.git synced 2024-11-23 15:14:18 +00:00
office-madness/Scripts/Time_Display.gd

13 lines
323 B
GDScript3
Raw Permalink Normal View History

2022-10-04 10:03:41 +00:00
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