My inventory has 3 slots. There is a shop in my game that sells items.
It works like this:
----------------------------
If [Buy Button] is clicked and [Money] is => 25 then sell one item to the player.
----------------------------
The problem is that when I click that button once, it sells 3 items at once (Inventory has 3 Slots)and fills inventory, plus takes money for 3 items instead of one.
How can I get ONE item only if I clicked [Buy] once?