コード例 #1
0
    private void WriteAssetBundleThread(object p)
    {
        BundleData param = p as BundleData;

        byte[] bytes = param.data;
        using (FileStream fs = File.OpenWrite(param.tarPath))
        {
            fs.Write(bytes, 0, bytes.Length);
            fs.Close();
            fs.Dispose();
        }
        param.cb(true);
    }