1.2 atualização/add void damege

This commit is contained in:
2026-05-28 10:00:14 -03:00
parent b0ced7a793
commit 4a2b697dd9
3 changed files with 24 additions and 29 deletions
+3 -1
View File
@@ -13,4 +13,6 @@ func _process(delta: float) -> void:
func _on_area_3d_body_entered(body: Node3D) -> void:
print(body.name)
if "health" in body:
var damage = body.health
body.damage(damage)