13 lines
211 B
Plaintext
13 lines
211 B
Plaintext
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
[ExecuteInEditMode]
|
|
public class CameraTarget : MonoBehaviour {
|
|
public Transform m_TargetOffset;
|
|
|
|
void LateUpdate(){
|
|
transform.LookAt (m_TargetOffset);
|
|
}
|
|
|
|
}
|