Is it possible to get an objects UID when on click? For example, I have many instances of a sprite Object "weapon." I would like to be able to click on a weapon in the game, and on click have it set it UID to an instance variable.
I am using an array to store all the weapon stats, eg, attack, rate of fire etc. I would like to be able to click on the weapon and then find the array by comparing the instance variable UID to the array and finding the appropriate stats.
Is this possible or am I going about it all wrong?