using System; using UnityEngine; using MLAPI; [DefaultExecutionOrder(200)] public class PositionInterpolation : Interpolation { public override Func LerpFunction => Vector3.LerpUnclamped; private void Update() { var value = GetValueForTime(NetworkingManager.Singleton.NetworkTime); if (!float.IsNaN(value.x)) { transform.position = value; } } }