Unity Prefabs Animation Play Seperatly


I have a coin prefab with an animation attached to it. The Animation has specific x,y,z coordinates. When I drag another coin prefab in my scene and play the game, the second coin prefab moves to the animation coordinates. (just as the first one). How can I make the x and z positions to move seperatly in the animation without making 100+ animations for each coin? Thanks in advance.

I would create an empty gameobject, then add the coin as a child of this gameobject. Now you can animate the coin (specifying x,y,z), as well as move it (by moving the parent gameobject).