the-crypt/script/basic_wand_collectable.gd

8 lines
152 B
GDScript3
Raw Normal View History

2020-07-18 15:58:23 -05:00
extends Collectable
func _on_Area2D_body_entered(body):
if body.get("Inventory") != null:
body.Inventory.add_item(Globals.Conduit1)
queue_free()