using UnityEngine;
using System.Collections;

public class CameraScript : MonoBehaviour {

    public Transform target;
    Vector3 offset;

	// Use this for initialization
	void Start ()
    {
        offset = transform.position - target.position;
	}
	
	// Update is called once per frame
	void Update ()
    {
        if (target)
        {
            transform.position = target.position + offset; //good enough for now, add damping later
        }
    }
}
