13 lines
212 B
C#
13 lines
212 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class LookAt : MonoBehaviour
|
|
{
|
|
public Transform target;
|
|
|
|
void Update ()
|
|
{
|
|
transform.LookAt(target);
|
|
}
|
|
}
|