holopy3/Assets/Monarch/Scripts/LookAt.cs

14 lines
212 B
C#
Raw Normal View History

2020-12-10 14:25:12 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LookAt : MonoBehaviour
{
public Transform target;
void Update ()
{
transform.LookAt(target);
}
}