Skip to content

Instantly share code, notes, and snippets.

@nrfm
Created September 30, 2017 07:38
Show Gist options
  • Save nrfm/50284371d11d3a528f6c6cf5a9cd9f53 to your computer and use it in GitHub Desktop.
Save nrfm/50284371d11d3a528f6c6cf5a9cd9f53 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class CameraLookAt : MonoBehaviour
{
public Transform target;
void Update ()
{
transform.LookAt(target);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment