public static bool UpdateData() { if (Time.frameCount == LastUpdateFrame) { return(LastUpdateResult == (int)Error.WORK); } else { LastUpdateFrame = Time.frameCount; } if (b4KImageReady) { LastUpdateResult4K = SRWorkModule_API.GetSeeThrough4KData(ref see_through_4k_data_); return(LastUpdateResult4K == (int)Error.WORK); } else { LastUpdateResult = SRWorkModule_API.GetSeeThroughData(ref see_through_data_); return(LastUpdateResult == (int)Error.WORK); } }