I want the camera to chase my object. I tried the following code-
using UnityEngine;
using System.Collections;
public class CameraLookAt : MonoBehaviour {
public Transform target;
void Update () {
transform.LookAt(target); } },
but it doesn’t seem to work. What can i do?