unity-atoms/Examples/Assets/InfiniteWaves/Common/SyncPositionWithVariable.cs
2020-03-19 22:42:34 +01:00

18 lines
324 B
C#

using UnityEngine;
using UnityAtoms.BaseAtoms;
namespace UnityAtoms.Examples
{
public class SyncPositionWithVariable : MonoBehaviour
{
[SerializeField]
private Vector3Reference _reference;
void LateUpdate()
{
_reference.Value = transform.position;
}
}
}