If i have one layer, and right mouse button is spawn sprite and left mouse button when i click on sprite > sprite destroy
But when i spawn many sprites in this same place when i clink one time all have been destroyed.
How destroy only first sprite? or first sprite on top, or just one random also will be good for me
I need this solution for survival game with inventory. Reason is When player drop items, items are placed in this same place so its impossible to drag them to inventory one by one
Pick up items back to inventory is when player overlapping item on ground and press space on keyboard