I want to item return transform. help me.

I want to item return transform. help me.

i have itembonus. i set 20 second transform in game but i want 10 second later item return to Start transform form loop.

Help me plase.

Code Item

   function Start () {
    yield WaitForSeconds( 20 );
    transform.position.x = 0.8994522;
    transform.position.y = 0.930599;
    transform.position.z = 1.439522;	

To return a transform you must make a method that has the type transform, so you can return it.

function GetTransform() : Transform {
    return this.transform;

If you call GetTransform it will return your current gameObjects transform. You can change this.transform to any other gameObject to get that gameObject’s transform.