Untested PickupableItem
This commit is contained in:
parent
a2c062e8bb
commit
63e87e86d5
19 changed files with 200 additions and 17 deletions
13
base/scripts/interactive/pickupable_item.gd
Normal file
13
base/scripts/interactive/pickupable_item.gd
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue