single script attached to multiple gameobjects, how to find a gameobject, player ontriggerenter's into with that single script ?

title has it all

9 game objects with trigger collider on them

when player enters that collider, I want camera to follow that gameobject instead of player

when player exits collider camera follows player again.

using simple ontriggerenter camera follows centre point of all gameobjects script is attached to instead of that perticular gameobject

what do I do ?

You should post your code.

And why not one script on your character to manage in what zone you are?