A Godot v4 game about working in an office
extends Control


@onready var enemy: BattleEnemy = get_parent()
@onready var healthLabel: Label = $Health
#@onready var focusLabel: Label = $Container/MarginContainer/Focus

func initialize() -> void:
	enemy.health_changed.connect(health_changed)
#	enemy.focus_changed.connect(focus_changed)
	
	healthLabel.text = "HP: %s / %s" % [enemy.health, enemy.max_health]
#	focusLabel.text = "FP: %s / %s" % [enemy.focus, enemy.max_focus]

func health_changed(old, new):
	healthLabel.text = "HP: %s / %s" % [enemy.health, enemy.max_health]

#func focus_changed(old, new):
#	focusLabel.text = "FP: %s / %s" % [enemy.focus, enemy.max_focus]