mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
11 lines
198 B
GDScript
11 lines
198 B
GDScript
extends Node2D
|
|
|
|
@export var entity: EntityBase
|
|
|
|
@onready var healthBar = $"%health"
|
|
|
|
func _process(_delta):
|
|
if entity:
|
|
healthBar.maxValue = entity.maxHealth
|
|
healthBar.setCurrent(entity.health)
|