Animation within Unity

I have a question regarding animation. If I have a player, and he has an animation like he attacks. The animation is done in unity. If and when I walk the player around then I hit the animation button to play the attack. He is automatically transformed back to the position i'm assuming where I animated him. How do I go about playing the animation wherever he is at that moment of?

Thank you.

I hade same problem also. I had gun with animation when a playe it animation startes to calculate from global coordinates, but when I move it child of gunParent GO, then it will animate in local coords from parent gunParent. Make it child of playerParent and move all or some of components to playerParent (Character Controller, ...). I not't thik that this is the best solution.