Attach this script to object1.
using UnityEngine;
using System.Collections;
public class Follow: MonoBehaviour {
GameObject TargetObject;
void Start () {
TargetObject = GameObject.Find("object2");
}
void FixedUpdate () {
this.transform.position = TargetObject.position;
}
}
this gives the exact same position on object1 as object2.This is no good if you want a smooth follow.