Envie/PickableItems/basic_item.gd
Victor Turgeon 39a399f137 Ze pew
2023-01-15 11:17:51 -05:00

13 lines
223 B
GDScript

extends Area2D
@export var Type : String;
@export var Item : PackedScene;
func _on_body_entered(body):
if body.name == "Player":
pickup_routine(body);
func pickup_routine(player):
player.pickup(self);
queue_free();