using UnityEngine;
using System.Collections;

public class CamScript : MonoBehaviour {


	public GameObject playerRef;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {

		Vector3 delta = playerRef.transform.position - transform.position;
		delta *= 0.05f;
		transform.position = new Vector3(transform.position.x + delta.x, transform.position.y + delta.y, transform.position.z);
	
	}
}
