Tanoda
PositionCopy.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4
5public class PositionCopy : MonoBehaviour
6{
7 public GameObject[] from, to;
8
9 void Update()
10 {
11 for (int i = 0; i < @from.Length; i++)
12 {
13 to[i].transform.position = @from[i].transform.position;
14 }
15 }
16}
GameObject[] from
Definition: PositionCopy.cs:7
GameObject[] to
Definition: PositionCopy.cs:7