/// <summary> /// Get Object from S3 Bucket /// </summary> public void GetObject(string filename, string S3BucketName) { InitializationManager.DownloadCount++; Client.GetObjectAsync(S3BucketName, filename, (responseObj) => { var response = responseObj.Response; if (response.ResponseStream != null) { //Debug.Log("response " + response.ResponseStream); filename = S3BucketName + "/" + filename; UIB_FileManager.WriteFileFromResponse(response, filename); Directory.SetLastAccessTime(UIB_PlatformManager.persistentDataPath, DateTime.Now); InitializationManager.DownloadCount--; InitializationManager.ReloadAssetBundle(filename); } }); }