Identifying which prefab which you triggered.

Say i have multiple pickup-able objects in my world that are the same prefab… How do i go about checking if its only the object im colliding with that does what i want it to instead of the other prefab?

As a demonstration: alt text

You need to show your code, are you not using collisions? Like usually people setup a collision in code and it gets the collider of the object that it hit… then you get the gameObject from the collider. Or you have the collision code on your object so that you can just use gameObject, transform or this…