public Transform object; float x = object.position.x; // change position one time object.position = new Vector3 (0,0,0);