接入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>();
}

View File

@@ -10,7 +10,8 @@
"GUID:47f9fc774596be54ebfed7739cd70c86",
"GUID:1aa3e8589868c80499255710874679c0",
"GUID:d8b63aba1907145bea998dd612889d6b",
"GUID:756335c0388f7114790e504ed368ae1d"
"GUID:756335c0388f7114790e504ed368ae1d",
"GUID:4140bd2e2764f1f47ab93125ecb61942"
],
"includePlatforms": [],
"excludePlatforms": [],

View File

@@ -1,9 +1,8 @@
using UnityEngine;
using UnityEngine.UI;
using TEngine;
namespace GameLogic
{
[Obfuz.ObfuzIgnore(Obfuz.ObfuzScope.TypeName)]
[Window(UILayer.UI)]
class BattleMainUI : UIWindow
{