1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Statemachine/EntityStateBar.gd
T

11 lines
198 B
GDScript
Raw Normal View History

2025-08-26 09:24:09 +08:00
extends Node2D
@export var entity: EntityBase
@onready var healthBar = $"%health"
func _process(_delta):
if entity:
healthBar.maxValue = entity.maxHealth
healthBar.setCurrent(entity.health)