15 lines
262 B
C#
15 lines
262 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class LookAtTarget : MonoBehaviour
|
|
{
|
|
public Transform Target;
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
transform.LookAt(Target);
|
|
}
|
|
}
|