From cb27fadb08581e05dfac5ace95f253c463d57a56 Mon Sep 17 00:00:00 2001 From: walon Date: Fri, 23 May 2025 09:27:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=89=80=E6=9C=89Sample?= =?UTF-8?q?=E4=B8=AD`SetUpStaticSecretKey`=E5=87=BD=E6=95=B0=E4=B8=8A?= =?UTF-8?q?=E7=9A=84`[ObfuzIngore]`=E7=89=B9=E6=80=A7=EF=BC=8C=E5=9B=A0?= =?UTF-8?q?=E4=B8=BAObfuz=E4=BC=9A=E8=87=AA=E5=8A=A8=E5=AF=B9`[RuntimeInit?= =?UTF-8?q?ializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoa?= =?UTF-8?q?ded)]`=E7=A6=81=E7=94=A8=E4=B8=80=E5=88=87=E6=B7=B7=E6=B7=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Samples/CustomConfigure/Assets/Bootstrap.cs | 2 -- Samples/DynamicSecretKey/Assets/Bootstrap.cs | 1 - Samples/MultiObfuscatedAssemblies/Assets/Bootstrap.cs | 2 -- Samples/QuickStart/Assets/Bootstrap.cs | 2 -- Samples/WorkWithHybridCLR/Assets/Bootstrap.cs | 2 -- 5 files changed, 9 deletions(-) diff --git a/Samples/CustomConfigure/Assets/Bootstrap.cs b/Samples/CustomConfigure/Assets/Bootstrap.cs index 84c58e2..25ca0c0 100644 --- a/Samples/CustomConfigure/Assets/Bootstrap.cs +++ b/Samples/CustomConfigure/Assets/Bootstrap.cs @@ -7,10 +7,8 @@ using UnityEngine; public class Bootstrap : MonoBehaviour { - // [ObfuzIgnore]指示Obfuz不要混淆这个函数 // 初始化EncryptionService后被混淆的代码才能正常运行, // 因此尽可能地早地初始化它。 - [ObfuzIgnore] [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)] private static void SetUpStaticSecretKey() { diff --git a/Samples/DynamicSecretKey/Assets/Bootstrap.cs b/Samples/DynamicSecretKey/Assets/Bootstrap.cs index c6257d9..6bb1df2 100644 --- a/Samples/DynamicSecretKey/Assets/Bootstrap.cs +++ b/Samples/DynamicSecretKey/Assets/Bootstrap.cs @@ -5,7 +5,6 @@ using UnityEngine; public class Bootstrap : MonoBehaviour { - [ObfuzIgnore] [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)] private static void SetUpStaticSecretKey() { diff --git a/Samples/MultiObfuscatedAssemblies/Assets/Bootstrap.cs b/Samples/MultiObfuscatedAssemblies/Assets/Bootstrap.cs index 84c58e2..25ca0c0 100644 --- a/Samples/MultiObfuscatedAssemblies/Assets/Bootstrap.cs +++ b/Samples/MultiObfuscatedAssemblies/Assets/Bootstrap.cs @@ -7,10 +7,8 @@ using UnityEngine; public class Bootstrap : MonoBehaviour { - // [ObfuzIgnore]指示Obfuz不要混淆这个函数 // 初始化EncryptionService后被混淆的代码才能正常运行, // 因此尽可能地早地初始化它。 - [ObfuzIgnore] [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)] private static void SetUpStaticSecretKey() { diff --git a/Samples/QuickStart/Assets/Bootstrap.cs b/Samples/QuickStart/Assets/Bootstrap.cs index 84c58e2..25ca0c0 100644 --- a/Samples/QuickStart/Assets/Bootstrap.cs +++ b/Samples/QuickStart/Assets/Bootstrap.cs @@ -7,10 +7,8 @@ using UnityEngine; public class Bootstrap : MonoBehaviour { - // [ObfuzIgnore]指示Obfuz不要混淆这个函数 // 初始化EncryptionService后被混淆的代码才能正常运行, // 因此尽可能地早地初始化它。 - [ObfuzIgnore] [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)] private static void SetUpStaticSecretKey() { diff --git a/Samples/WorkWithHybridCLR/Assets/Bootstrap.cs b/Samples/WorkWithHybridCLR/Assets/Bootstrap.cs index ae6b531..13f17e3 100644 --- a/Samples/WorkWithHybridCLR/Assets/Bootstrap.cs +++ b/Samples/WorkWithHybridCLR/Assets/Bootstrap.cs @@ -11,10 +11,8 @@ using UnityEngine; public class Bootstrap : MonoBehaviour { - // [ObfuzIgnore]指示Obfuz不要混淆这个函数 // 初始化EncryptionService后被混淆的代码才能正常运行, // 因此尽可能地早地初始化它。 - [ObfuzIgnore] [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)] private static void SetUpStaticSecretKey() {