Example #1
0
    void Update()
    {
        if (InterpolationType != _LastInterpolationType)
        {
            SetupInterpolator();
            _LastInterpolationType = InterpolationType;
        }

        if (_Interpolator != null)
        {
            _Interpolator.Update(Time.time);
            var point = _Interpolator.GetDataPoint(Time.time - Delay);
            ObjectToMove.position = point;
        }
    }