// // GameApp.cs // Create: // 2019-10-29 // Description: // 本地代码插件 // Author: // 薛林强 <545626463@qq.com> // // Copyright (c) 2026 虚幻骑士科技 using Skyunion; #if UNITY_EDITOR using UnityEditor; #endif using UnityEngine; public class NativePlugin : Plugin { public NativePlugin() : base("NativePlugin") { } public override void OnAddModule() { HotfixMode mode = HotfixMode.NativeCode; #if UNITY_EDITOR mode = (HotfixMode)EditorPrefs.GetInt("HofixService_HofixMode", (int)HotfixMode.NativeCode); #endif if (mode == HotfixMode.NativeCode) { AddModule(new HotFixService_Native()); } } }