AugGodotGameCourse/augustgamecourse/scripts/ui.gd

11 lines
297 B
GDScript3
Raw Permalink Normal View History

extends Control
@onready var health: Label = $VBoxContainer/HBoxContainer/MarginContainer/Health
@onready var coins: Label = $VBoxContainer/HBoxContainer/MarginContainer2/Coins
func healthUpdate(amt):
health.text = "Health : "+str(amt)
func coinsUpdate(amt):
coins.text = "Coins : "+str(amt)