Added Itemsmanager
Items now can be stored. I wanna kill myself
This commit is contained in:
@@ -11,15 +11,4 @@ func _ready() -> void:
|
||||
|
||||
func _on_interact(person, object):
|
||||
object.ActionNode.start_action(person, object)
|
||||
|
||||
|
||||
func give_item(person, item_id):
|
||||
var item = get_item_form_id(item_id)
|
||||
person.hold_item(item)
|
||||
|
||||
|
||||
|
||||
func get_item_form_id(id):
|
||||
match id:
|
||||
0:
|
||||
return food_item
|
||||
print(object)
|
||||
|
||||
Reference in New Issue
Block a user