132 SYNC
This commit is contained in:
7
WorldItem.gd
Normal file
7
WorldItem.gd
Normal file
@@ -0,0 +1,7 @@
|
||||
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 )
|
||||
Reference in New Issue
Block a user