unity-atoms/Examples/Assets/InfiniteWaves/Common/SyncPositionWithVariable.cs

18 lines
324 B
C#
Raw Normal View History

2020-03-17 19:17:33 -04:00
using UnityEngine;
using UnityAtoms.BaseAtoms;
namespace UnityAtoms.Examples
{
public class SyncPositionWithVariable : MonoBehaviour
{
[SerializeField]
private Vector3Reference _reference;
void LateUpdate()
{
_reference.Value = transform.position;
}
}
}