void GetActualFile(PlayFab.DataModels.GetFileMetadata fileData) { GlobalFileLock += 1; // Start Each SimpleGetCall PlayFabHttp.SimpleGetCall(fileData.DownloadUrl, result => { _entityFileJson[fileData.FileName] = Encoding.UTF8.GetString(result); keys.Add(fileData.FileName); GlobalFileLock -= 1; }, // Finish Each SimpleGetCall error => { Debug.Log(error); } ); }
private void GetActualFile(PlayFab.DataModels.GetFileMetadata fileData) { GlobalFileLock += 1; // Start Each SimpleGetCall PlayFabHttp.SimpleGetCall(fileData.DownloadUrl, resultByteArr => { _entityFileJson[fileData.FileName] = Encoding.UTF8.GetString(resultByteArr); GlobalFileLock -= 1; Debug.Log("OnSimpleGetCall success with file = " + fileData.FileName); }, // Success SimpleGetCall on this file, filename value = these bytes error => { Debug.Log("OnSimpleGetCall error with error msg = " + error); GlobalFileLock -= 1; }); }