mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-14 19:40:47 +00:00
update extension sample
This commit is contained in:
@@ -268,19 +268,6 @@ internal class TiktokFileSystem : IFileSystem
|
||||
}
|
||||
return filePath;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载加密资源文件
|
||||
/// </summary>
|
||||
public AssetBundle LoadEncryptedAssetBundle(PackageBundle bundle, byte[] fileData)
|
||||
{
|
||||
WebDecryptFileInfo fileInfo = new WebDecryptFileInfo();
|
||||
fileInfo.BundleName = bundle.BundleName;
|
||||
fileInfo.FileLoadCRC = bundle.UnityCRC;
|
||||
fileInfo.FileData = fileData;
|
||||
var decryptResult = DecryptionServices.LoadAssetBundle(fileInfo);
|
||||
return decryptResult.Result;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#endif
|
||||
@@ -286,19 +286,6 @@ internal class WechatFileSystem : IFileSystem
|
||||
}
|
||||
return filePath;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载加密资源文件
|
||||
/// </summary>
|
||||
public AssetBundle LoadEncryptedAssetBundle(PackageBundle bundle, byte[] fileData)
|
||||
{
|
||||
WebDecryptFileInfo fileInfo = new WebDecryptFileInfo();
|
||||
fileInfo.BundleName = bundle.BundleName;
|
||||
fileInfo.FileLoadCRC = bundle.UnityCRC;
|
||||
fileInfo.FileData = fileData;
|
||||
var decryptResult = DecryptionServices.LoadAssetBundle(fileInfo);
|
||||
return decryptResult.Result;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user