Renamed damage instance

This commit is contained in:
2024-02-13 23:49:58 +01:00
parent d87d4c9e3f
commit 60783f7166
3 changed files with 5 additions and 6 deletions

View File

@ -4,4 +4,4 @@ func on_body_entered(body: Node3D):
var health := body.get_node_or_null("Health") as HealthComponent
if health:
health.take_damage(DamageInstance.new(100))
health.take_damage(Hit.new(100))