How do you localize the OnMouseDown() input to a specific gameObject?
I have one script as a component to one gameObject with Collider, but another gameObject with a Collider is linked to that same script put in the primary gameObject’s component.
What I want to do is to utilize the OnMouseDown() input to recognize the secondary gameObject only.
I'm not sure... Do you mean you want to detect if you clicked on the secondary gameObject?
– MeistermineYes. But I fixed a problem I was having on my own, so I don't need to do this. But I am curious on how to detect the secondary object.
– BalloonFace