Get a selected item from a GameObject list?
I've been hitting my head against the wall with this one, mostly due to my lack of expertise with c# and Unity.
Let's say that we have a 2D gameworld where we will have n GameObjects, that are instances from the same GameObject template. These GameObjects are in a list of GameObjects (let's call it CharacterList), which is necessary since I have other systems that will need to run this list. I know I can use the Event System, such as OnClick to trigger specific functions, but my question is: How can I use the OnClick to call the One specific instance that I'm selecting (which is supposed to be within my CharacterList)?
Your answer
Follow this Question
Related Questions
Check if a large number of gameobjects are colliding 1 Answer
Transport gameobjects with photon 0 Answers
Shake GameObject in 0 Answers