19 lines
354 B
C#
19 lines
354 B
C#
|
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;
|
||
|
|
||
|
}
|
||
|
}
|