From fc3ed28eda99dd4e09a1359e430942f924c4411f Mon Sep 17 00:00:00 2001 From: hevinci Date: Fri, 3 Mar 2023 11:53:22 +0800 Subject: [PATCH] update samples --- .../Space Shooter/GameScript/Editor/Encryption.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Editor/Encryption.cs b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Editor/Encryption.cs index 1b39c2f..1e3ca41 100644 --- a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Editor/Encryption.cs +++ b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Editor/Encryption.cs @@ -3,21 +3,11 @@ using System.IO; using System.Text; using YooAsset; -public class EncryptionNone : IEncryptionServices -{ - public EncryptResult Encrypt(EncryptFileInfo fileInfo) - { - EncryptResult result = new EncryptResult(); - result.LoadMethod = EBundleLoadMethod.Normal; - return result; - } -} - public class FileOffsetEncryption : IEncryptionServices { public EncryptResult Encrypt(EncryptFileInfo fileInfo) { - if(fileInfo.BundleName.Contains("gameres_music")) + if (fileInfo.BundleName.Contains("_gameres_audio")) { int offset = 32; byte[] fileData = File.ReadAllBytes(fileInfo.FilePath);