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