how do i add a delay to the selection, cause mouse scrollwheel input is very fast
i dont want to use a timer.
in unity i did things like this>
if (Time.time > nextselect):
nextselect = Time.time + 1.0
for icon in weaponInventory.get_children():
print(icon.name, " at index: ", icon.get_index())
however , i check if inventory is open (and call open_inventory)and do the code there. so there is no 'delta' variable i can use
func open_Inventory():
weaponInventory.visible = true
for icon in weaponInventory.get_children():
print(icon.name, " at index: ", icon.get_index())