void DownloadDataCallBack(object obj) { if (obj == null || !(obj is object[])) { return; } object[] pars = obj as object[]; if (pars != null && pars.Length == 2 && pars[0] is byte[] && pars[1] is string) { byte[] buffer = pars[0] as byte[]; string savepath = pars[1] as string; FileStream output = null; lock (threadLock) { output = new FileStream(savepath, FileMode.Create); } if (!SevenZipHelper.DecompressFile(buffer, output)) { Debugger.LogError("DecompressFile file : " + savepath + " fail!"); } } }