add projectile destruction effect when hitting player
This commit is contained in:
@@ -89,9 +89,9 @@ func _destroy() -> void:
|
||||
|
||||
func _on_body_entered(node: Node3D) -> void:
|
||||
if node is Player:
|
||||
queue_free()
|
||||
var player := node as Player
|
||||
player.stats.damage()
|
||||
_destroy()
|
||||
return
|
||||
|
||||
if node is CollisionObject3D:
|
||||
|
||||
Reference in New Issue
Block a user