mirror of https://github.com/tuyoogame/YooAsset
update extension sample
parent
d55db19f0e
commit
d133a9a692
|
@ -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
|
Loading…
Reference in New Issue