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

22 lines
525 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GuDing : MonoBehaviour
{
private Vector3 initialPosition; // Variable to store the initial position
// Start is called before the first frame update
void Start()
{
initialPosition = transform.position; // Record the initial position
}
// Update is called once per frame
void Update()
{
// Fix the object at the initial position
transform.position = initialPosition;
}
}