Two collision objects for two different things, can it be done?

I have an enemy who has two collision objects on him. an inner one so if he gets hit by your bullet he disappears and an outer one to see if you are in his vicinity. How can i access his inner and outer collision object in the OnCollisionEnter function?

Thanks

Don’t use collision to detect proximity to something. Instead use this:

Vector3.Distance(transform.position,Target.position);

whereas (transform.position) is the enemy and (Target.position) is the player.

Right, Puppeteer’s got the right idea.

If you should eventually come across some different situation with two colliders on one object, you will instead want to create an empty object and move one collider to that object, then parent it to the other collider.