接入obfuz->3.0

This commit is contained in:
Alex-Rachel
2025-07-26 18:16:16 +08:00
parent cb86d8868e
commit c8482799c5
414 changed files with 572 additions and 25113 deletions

View File

@@ -1,6 +1,9 @@
using System.Collections.Generic;
using System.Reflection;
using GameLogic;
#if ENABLE_OBFUZ
using Obfuz;
#endif
using TEngine;
#pragma warning disable CS0436
@@ -8,6 +11,9 @@ using TEngine;
/// <summary>
/// 游戏App。
/// </summary>
#if ENABLE_OBFUZ
[ObfuzIgnore]
#endif
public partial class GameApp
{
private static List<Assembly> _hotfixAssembly;
@@ -23,12 +29,13 @@ public partial class GameApp
Log.Warning("======= 看到此条日志代表你成功运行了热更新代码 =======");
Log.Warning("======= Entrance GameApp =======");
Utility.Unity.AddDestroyListener(Release);
Log.Warning("======= StartGameLogic =======");
StartGameLogic();
}
private static void StartGameLogic()
{
GameEvent.Get<ILoginUI>().ShowLoginUI();
// GameEvent.Get<ILoginUI>().ShowLoginUI();
GameModule.UI.ShowUIAsync<BattleMainUI>();
}