using UnityEngine;
using System.Collections;

public class CameraControl : MonoBehaviour {

    public float height;
    public float distance;
    public Camera cameraTransform;

    public float rotateX;
    public float rotateY;
    public float rotateZ;


	// Use this for initialization
	void Start () {
        cameraTransform.transform.position = transform.position;
	}
	
	// Update is called once per frame
	void Update () {
        cameraTransform.transform.position = new Vector3(transform.position.x, transform.position.y + height, transform.position.z + distance);
        cameraTransform.transform.rotation = new Quaternion(rotateX, rotateY, 0, 1);
	
	}
}
