Improved component system

This commit is contained in:
2024-02-15 16:28:27 +01:00
parent 8de91eaba1
commit b439919ad0
19 changed files with 89 additions and 99 deletions

View File

@ -9,7 +9,7 @@ var health: HealthComponent
func _ready():
health = owner.health
health.value_changed.connect(on_health_changed)
func on_health_changed():
value = health.value / health.max_value