You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
213 B

  1. using UnityEngine;
  2. using System.Collections;
  3. public class camera_controls : MonoBehaviour {
  4. public Transform target;
  5. // Update is called once per frame
  6. void Update () {
  7. transform.LookAt (target);
  8. }
  9. }