static void EditorUpdate() { while (!www.isDone) { elapsedTime = EditorApplication.timeSinceStartup - startTime; if (elapsedTime >= Config.timeOutLimit) { GoogleDriveConnectorCore.ProcessResponse("TIME_OUT", (float)elapsedTime); EditorApplication.update -= EditorUpdate; } return; } EditorApplication.update -= EditorUpdate; if (www.isNetworkError) { GoogleDriveConnectorCore.ProcessResponse( GoogleDriveConnectorCore.MSG_CONN_ERR + "Connection error after " + elapsedTime.ToString() + " seconds: " + www.error, (float)elapsedTime); return; } if (www.isHttpError) { Debug.LogError("Web url error,please check"); return; } GoogleDriveConnectorCore.ProcessResponse(www.downloadHandler.text, (float)elapsedTime); }
static IEnumerator LoadingAllSheets() { yield return(EditorCoroutineRunner.StartEditorCoroutine(GoogleDriveConnectorCore.GetAllSheets())); Debug.LogError("TODO"); // ExcelParser.ExportExcels(); }
static void LoadingSingleTableFromName() { Debug.Log(LoadingSingleTableByName); EditorCoroutineRunner.StopAllCoroutine(); EditorCoroutineRunner.StartEditorCoroutine(GoogleDriveConnectorCore.LoadingSingleSheetFromName()); }
public static void LoadingSingleTable() { EditorCoroutineRunner.StopAllCoroutine(); EditorCoroutineRunner.StartEditorCoroutine(GoogleDriveConnectorCore.LoadingSingleSheet()); }