private void UpdateSaveStatus() { unsafe { fixed(int *saveStatePtr = &saveState, saveErrorPtr = &saveError) { SDPlugin.SixDegreesSDK_GetSaveStatus(saveStatePtr, saveErrorPtr, null); } } }
private void UpdateSaveStatus() { unsafe { fixed(int *saveStatePtr = &saveState, saveErrorPtr = &saveError) { fixed(long *uploadSizePtr = &uploadSize) { fixed(float *uploadProgessPtr = &uploadProgress) { SDPlugin.SixDegreesSDK_GetSaveStatus(timeStamp, saveStatePtr, saveErrorPtr, uploadSizePtr, uploadProgessPtr); } } } } }
void UpdateStatus() { saveState = (int)SDPlugin.SDSaveState.None; if (SDPlugin.IsSDKReady && (saveTime > 0 || loadTime > 0)) { } else { return; } var status = ""; if (saveTime > loadTime) { unsafe { fixed(int *saveStatePtr = &saveState, saveErrorPtr = &saveError) { fixed(long *uploadSizePtr = &uploadSize) { fixed(float *uploadProgessPtr = &uploadProgress) { SDPlugin.SixDegreesSDK_GetSaveStatus(saveTime, saveStatePtr, saveErrorPtr, uploadSizePtr, uploadProgessPtr); } } } } } StringBuilder sb = new StringBuilder(16); SDPlugin.SixDegreesSDK_GetLocationId(sb, sb.Capacity); SDPlugin.LocationID = sb.ToString(); }