public static async UniTask LoadTableAsync() { // DevでははAirTableから直接ロード // 最終的にはMemoryMasterからロード AirTableClient client = new AirTableClient("key3NNedymjZdyPup"); AirTableBase clientBase = client.GetBase("appsj9JjmBwaF3Hbz"); try { await LoadMyEnumData(clientBase); await LoadMyEnumData2(clientBase); } catch (Exception e) { Debug.LogError(e); throw; } }
private async UniTask LoadTableAsync() { AirTableClient client = new AirTableClient("key3NNedymjZdyPup"); AirTableBase clientBase = client.GetBase("applzeJ39lPimqZgv"); try { Common[] allRows = await clientBase.LoadTableAsync <Common>(); foreach (Common row in allRows) { // 1レコードずつ取り出す処理 Debug.Log(row.Name + ":" + row.Notes); } } catch (Exception e) { Debug.LogError(e); throw; } }
private static async Task LoadMyEnumData2(AirTableBase clientBase) { TableRow[] allRows2 = await clientBase.LoadTableAsync <TableRow>("Setting2"); InitList <MyEnum2>(s_MyEnum2Data, allRows2); }