Ejemplo n.º 1
0
        long CalculateInterpolationTime(bool endOfFrame = false)
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            return(leap_controller_.Now() - 16000);
#else
            if (leap_controller_ != null)
            {
                return(leap_controller_.Now() - (long)_smoothedTrackingLatency.value + (_updateHandInPrecull && !endOfFrame ? (long)(Time.smoothDeltaTime * S_TO_NS / Time.timeScale) : 0));
            }
            else
            {
                return(0);
            }
#endif
        }