diff --git a/Assets/YooAsset/Runtime/ResourcePackage/PlayMode/EditorSimulateModeHelper.cs b/Assets/YooAsset/Runtime/ResourcePackage/PlayMode/EditorSimulateModeHelper.cs
index c280bb5..a857eed 100644
--- a/Assets/YooAsset/Runtime/ResourcePackage/PlayMode/EditorSimulateModeHelper.cs
+++ b/Assets/YooAsset/Runtime/ResourcePackage/PlayMode/EditorSimulateModeHelper.cs
@@ -44,10 +44,15 @@ namespace YooAsset
{
public static class EditorSimulateModeHelper
{
- ///
- /// 编辑器下模拟构建清单
- ///
- public static string SimulateBuild(string buildPipelineName, string packageName) { throw new System.Exception("Only support in unity editor !"); }
+ public static string SimulateBuild(string buildPipelineName, string packageName)
+ {
+ throw new System.Exception("Only support in unity editor !");
+ }
+
+ public static string SimulateBuild(EDefaultBuildPipeline buildPipeline, string packageName)
+ {
+ throw new System.Exception("Only support in unity editor !");
+ }
}
}
#endif
\ No newline at end of file
diff --git a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Editor/Encryption.cs b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Editor/Encryption.cs
index 447064f..97094ee 100644
--- a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Editor/Encryption.cs
+++ b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Editor/Encryption.cs
@@ -1,15 +1,16 @@
-using System;
+using System;
using System.IO;
using System.Text;
using YooAsset;
///
-/// ļƫƼܷʽ
+/// 文件偏移加密方式
///
public class FileOffsetEncryption : IEncryptionServices
{
public EncryptResult Encrypt(EncryptFileInfo fileInfo)
{
+ // 注意:只对音频资源包加密
if (fileInfo.BundleName.Contains("_gameres_audio"))
{
int offset = 32;
@@ -32,7 +33,7 @@ public class FileOffsetEncryption : IEncryptionServices
}
///
-/// ļܷʽ
+/// 文件流加密方式
///
public class FileStreamEncryption : IEncryptionServices
{