class_name UI extends Control @onready var health: Label = $VBoxContainer/HBoxContainer/MarginContainer/health @onready var timer: Label = $VBoxContainer/HBoxContainer/MarginContainer2/timer @onready var coins: Label = $VBoxContainer/HBoxContainer/MarginContainer3/coiins func _ready() -> void: health.text = "Hi MOM!" func updateTimer(timerValue)->void: timer.text = str(timerValue) func updateHealth(healthValue, maxHealth)->void: health.text = str(healthValue) func updateCoins(collectedCoins, coinsRemaining)->void: coins.text= str(collectedCoins)+" of "+str(coinsRemaining+collectedCoins)