extends Control @onready var timer: Label = $VBoxContainer/HBoxContainer/MarginContainer3/timer @onready var health: Label = $VBoxContainer/HBoxContainer/MarginContainer/health @onready var coins: Label = $VBoxContainer/HBoxContainer/MarginContainer2/coins # Called when the node enters the scene tree for the first time. func _ready() -> void: pass # Replace with function body. func timerUpdate(timeRemaining): timer.text = str(timeRemaining) func healthUpdate(healthRemaining): health.text = "HEALTH "+str(healthRemaining) func healthGone(): health.text = "HEALTH 0" func coinsUpdate(coinsCollectedTotal, coinsAvailableTotal): coins.text = str(coinsCollectedTotal) + " of " +str(coinsAvailableTotal)