the-crypt/script/ItemPickup.gd

8 lines
119 B
GDScript3
Raw Normal View History

2020-07-18 00:07:44 -05:00
extends Area2D
2020-07-18 15:58:23 -05:00
class_name Collectable
2020-07-18 00:07:44 -05:00
export var Item: PackedScene
func _on_Area2D_body_entered(body):
2020-07-18 15:58:23 -05:00
queue_free()