I’ll try to keep it concise. Essentially, I’ve got a script on a parent object called “Inputs”. This parent object has a bunch of individual objects in it called input 1, 2, etc. My problem at this point is that I can’t figure out how to say “function OnMouseDown(child object called input1) do something”. I’ve only been able to get OnMouseDown to work with the game object the script is on. Hopefully this makes enough sense to be answerable.
I really just need to know how to be more specific with the OnMouseDown function so that I can say “click on this particular thing (with a collider)” and not just “click on the game object.” I’m probably just looking this up the wrong way because it seems really simple and I haven’t been able to find a solution anywhere. Thanks in advance for the help!