7 lines
151 B
GDScript3
7 lines
151 B
GDScript3
|
extends Collectable
|
||
|
|
||
|
func _on_Area2D_body_entered(body):
|
||
|
if body.get("Inventory") != null:
|
||
|
body.Inventory.add_item(Globals.Conduit4)
|
||
|
queue_free()
|