ar_tourism_flutter_unity/unity/VRProject2/Assets/zhl/zhlScripts/LookAt.cs
2025-05-14 17:04:13 +08:00

20 lines
362 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LookAt : MonoBehaviour
{
public Transform playerTransform;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
transform.LookAt(playerTransform);
}
}