Untested PickupableItem

This commit is contained in:
Alexey 2025-07-31 15:33:31 +03:00
commit 63e87e86d5
19 changed files with 200 additions and 17 deletions

View file

@ -0,0 +1,13 @@
extends InteractiveObject
class_name PickupableItem
@export var content: BasePickupableResource
func _ready() -> void:
if content.texture != null:
texture = content.texture
func _interact(_player: Player) -> void:
if content._apply(_player):
queue_free()