Files
2D_Game_test/UI/Inventory/UserInventory.gd
2023-02-05 22:38:50 -05:00

20 lines
310 B
GDScript

extends Control
@export var items:Array = []
@export var current_slot:int = 0
@export var active_item:Dictionary = {}
func _process(_delta):
if current_slot == 0:
return
if Input.is_action_just_pressed("drop_item"):
if items[current_slot]:
print("ITEM IN SLOT: ", items[current_slot])