Implermented health
This commit is contained in:
parent
76e5b1927f
commit
e6391d9fdd
13 changed files with 142 additions and 109 deletions
|
|
@ -49,7 +49,7 @@ func fireBullet() -> void:
|
|||
print('No result')
|
||||
return
|
||||
|
||||
var health = result.collider.get_node('Health')
|
||||
var health = result.collider.get_node_or_null('Health')
|
||||
if health:
|
||||
print("Dealing Damage")
|
||||
result.collider.health.take_damage(1, Vector2(0,0))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue