9 lines
207 B
GDScript
9 lines
207 B
GDScript
extends InteractableObject
|
|
|
|
@export var item_name : String
|
|
|
|
func _interact ():
|
|
var item = load("res://Items/ItemData/" + item_name + ".tres")
|
|
GlobalSignals.on_give_player_item.emit(item, 1 )
|
|
queue_free()
|