ict.shenzhi/Assets/ProfessionalAssets/DronePack/Scripts/LookAt.cs

17 lines
276 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace PA_DronePack
{
public class LookAt : MonoBehaviour
{
public Transform target;
void Update()
{
transform.LookAt(target);
}
}
}