Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Sprite2D
- @export var item: Item
- func _ready():
- texture = item.icon
- func _on_player_entered(body):
- get_tree().current_scene.find_child("ItemMessage").send_message(item)
- queue_free()
Advertisement
Add Comment
Please, Sign In to add comment