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

21 lines
419 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ShuiDI : MonoBehaviour
{
public Camera myCamera;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
transform.position = new Vector3(transform.position.x, transform.position.y, myCamera.transform.position.z);
}
}