How to keep the change of positon which the animation has made?

Some animation will change the gameobject’s position,and I would like to keep this change instead of reverting to it’s original position.How can I achieve this purpose?Thank you!

Use random function to instantiate spawn point at any position,also you can assign objects original position to revert there.

var arr : Transform;

function Start (){

var arr = new Array ();


above script is simple example you can try this like.

best luck