get position of another object unity

Code Example - get position of another object unity

                
                        public Transform object;

float x  = object.position.x;

// change position one time 

object.position = new Vector3 (0,0,0);