mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 00:58:59 -05:00
18 lines
324 B
C#
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|