22 lines
525 B
C#
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;
|
|
}
|
|
}
|