I'm detecting mouse clicks if the click is happening over the collider but I don't want to fire mouse clicks if it is on the trigger object. How to I do this? Any suggestions?
How to detect clicks on object? . This is a question I had asked. The proper way to detect mouse clicks is to use RayCasting, RayCast2D for 2D. While Raycasting, you can specify layermask, which let's you ignore objects which you want to ignore.
The second answer on the aforementioned question provides a solution for 2D.