Problem with Animator

I have made a prefab for my enemy. And i m using it for object pool. Problem is that when i hit any enemy with fire then i have made OnTrigger Function for playing a destroy animation from animator by setting a bool to true but Animation plays on all of the objects.But if i drag prefabs to hierarchy 3 -4 times then animations plays correctly on the hitted enemy.?

I don’t how you are calling the trigger on objects, but maybe you are change bool variable on the prefab script, so, the others copies, change with the prefab. I mean, try to keep a refenrence for each copy of prefab you instantiate and make the change of variable in taht gameobject.

@Camilohoyos16 yes i am changing bool on prefab script how can i keep the reference to each copies?