player: add health callbacks
Allows us to update the HUD on health change
This commit is contained in:
parent
5b8d7fdcce
commit
7e1847942b
2 changed files with 19 additions and 5 deletions
|
|
@ -2,4 +2,4 @@ extends Area3D
|
|||
|
||||
func _on_body_entered(body: Node3D):
|
||||
if body is Player:
|
||||
body.health = 0
|
||||
body.die()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue