I'm studying game development in Unity and I want to create a idle/clicker game like Cow Evolution.
I'm using OnMouseDown
, OnMouseDrag
and OnMouseUp
to move the GameObject around the scene.
Now I want to detect the collision when dropping (OnMouseUp
) a GameObject over another GameObject.
Like in this video: https://www.youtube.com/watch?v=3OK77oVV_G0
Assuming there's more than one object below, I must detect which one is with most below the dropped object.
I apologize if it is difficult to understand my English.
Thank you.