GodotProject/scripts/ui.gd

10 lines
286 B
GDScript3
Raw Permalink Normal View History

2024-08-20 01:18:41 +00:00
extends Control
@onready var health = $VBoxContainer/HBoxContainer/MarginContainer/Health
@onready var coins = $VBoxContainer/HBoxContainer/MarginContainer2/Coins
func healthUpdate(amt):
health.text = "Health : " + str(amt)
func coinsUpdate(amt):
coins.text = "Coins : " + str(amt)