using UnityEngine;
using System.Collections;

public class CameraMovement : MonoBehaviour
{   //Variabeln für die Kamera
    public Transform target;
    public float camerahight;
    public float smoothTime = 0.3F;
    private Vector3 velocity = Vector3.zero;
    void Update()
    {
        Vector3 targetPosition = target.TransformPoint(new Vector3(0, camerahight, 0));
        transform.position = Vector3.SmoothDamp(transform.position, targetPosition, ref velocity, smoothTime);
    }
}