18 lines
535 B
GDScript3
18 lines
535 B
GDScript3
|
|
extends Control
|
||
|
|
@onready var health = $VBoxContainer/HBoxContainer/MarginContainer/hEALTH
|
||
|
|
@onready var time = $VBoxContainer/HBoxContainer/MarginContainer2/TIME
|
||
|
|
|
||
|
|
|
||
|
|
# Called when the node enters the scene tree for the first time.
|
||
|
|
func _ready() -> void:
|
||
|
|
health.text = "boombastic"
|
||
|
|
|
||
|
|
|
||
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||
|
|
func _process(delta):
|
||
|
|
pass
|
||
|
|
func updatehealth(_damage,_health)->void:
|
||
|
|
health.text = "Health"+str(_health)
|
||
|
|
func updatetime (timeavailable)->void:
|
||
|
|
time.text = str(timeavailable)
|