13 lines
265 B
GDScript
13 lines
265 B
GDScript
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()
|