Files
the-connection/client/Scripts/Component/Killbox.gd

9 lines
171 B
GDScript

extends Area2D
func _ready():
connect("body_entered", self, "_on_body_entered")
func _on_body_entered(body):
if body.has_method("handle_death"):
body.handle_death()