20 lines
310 B
GDScript
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])
|
|
|
|
|
|
|
|
|
|
|