retrace/Global/Inventory.gd

21 lines
245 B
GDScript3
Raw Normal View History

2020-01-28 17:43:21 +01:00
extends Node
var items: Array
func _ready():
pass # Replace with function body.
func add_item (item):
if items.has(item):
return
items.append(item)
func contains_item (item):
return items.has(item)
func get_items ():
return items