using UnityEngine;
using System.Collections;
public class camfollow : MonoBehaviour {
public float distance = 17.0f;
public float speed = 17.0f;
private Transform player;
// Use this for initialization
void Start () {
player = GameObject.Find (“player”).transform;
}
// Update is called once per frame
void Update () {
transform.position = player.position + new Vector3 (distance, speed, -distance);
transform.LookAt (player);
}
}
that script I add in camera, so that the camera follow player.
when I press play playercontrol than I turn right and left.That Camera turn fast. So are there less?