16 lines
271 B
C#
16 lines
271 B
C#
|
using UnityEngine;
|
|||
|
using System.Collections;
|
|||
|
|
|||
|
public class CameraLookAt : MonoBehaviour {
|
|||
|
public Transform target;
|
|||
|
// Use this for initialization
|
|||
|
void Start () {
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
// Update is called once per frame
|
|||
|
void Update () {
|
|||
|
transform.LookAt(target);
|
|||
|
}
|
|||
|
}
|