1
0
This commit is contained in:
FoxSpellCaster
2025-04-17 01:32:50 -04:00
parent 99bea1a1f0
commit c69e069e0a
10 changed files with 46 additions and 5 deletions

7
WorldItem.gd Normal file
View 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 )