Created
September 30, 2017 07:38
-
-
Save nrfm/50284371d11d3a528f6c6cf5a9cd9f53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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