16 lines
178 B
C#
16 lines
178 B
C#
using UnityEngine;
|
|
|
|
public class LookAt : MonoBehaviour
|
|
{
|
|
public Transform target;
|
|
|
|
private void Start()
|
|
{
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
base.transform.LookAt(target);
|
|
}
|
|
}
|