unity-atoms/Examples/Assets/InfinityWaves/Common/SyncPositionWithVariable.cs
2020-03-18 00:17:33 +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;
}
}
}