using UnityEngine;
using System.Collections;

public class TrackingObject : MonoBehaviour {

	public Transform target;
	public float speed = 5;

	Transform _transform;

	// Use this for initialization
	void Start () {
		_transform = transform;
	}
	
	// Update is called once per frame
	void Update () {
		_transform.position = Vector3.Lerp(_transform.position, target.position, Time.deltaTime*speed);
	}
}
