using Obfuz; using Obfuz.EncryptionVM; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Bootstrap : MonoBehaviour { [ObfuzIgnore] [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)] private static void SetUpStaticSecret() { Debug.Log("SetUpStaticSecret begin"); EncryptionService.Encryptor = new GeneratedEncryptionVirtualMachine(Resources.Load("Obfuz/defaultStaticSecretKey").bytes); Debug.Log("SetUpStaticSecret end"); } public int Add(int a, int b) { return a + b; } void Start() { int a = Add(100, 200); Debug.Log($"a = {a}"); } }