using System.Collections.Generic; using System.Reflection; using GameLogic; using TEngine; #pragma warning disable CS0436 /// /// 游戏App。 /// public partial class GameApp { private static List _hotfixAssembly; /// /// 热更域App主入口。 /// /// public static void Entrance(object[] objects) { GameEventHelper.Init(); _hotfixAssembly = (List)objects[0]; Log.Warning("======= 看到此条日志代表你成功运行了热更新代码 ======="); Log.Warning("======= Entrance GameApp ======="); Utility.Unity.AddDestroyListener(Release); StartGameLogic(); } private static void StartGameLogic() { GameEvent.Get().ShowLoginUI(); GameModule.UI.ShowUIAsync(); } private static void Release() { SingletonSystem.Release(); Log.Warning("======= Release GameApp ======="); } }