﻿using UnityEngine;
using System.Collections;

public class follow : MonoBehaviour {

	public GameObject target;

	private Vector3 offset;
	// Use this for initialization
	void Start () {
		offset = target.transform.position - transform.position;
	}
	
	// Update is called once per frame
	void Update () {
		transform.position = target.transform.position - offset;
		
	}
}
