XRoom_Unity/Assets/pin.cs

19 lines
354 B
C#
Raw Normal View History

2025-05-31 06:50:20 +00:00
using UnityEngine;
public class pin : MonoBehaviour
{
public Transform pinTarget;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
transform.position= pinTarget.position;
}
}