mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
接入obfuz->3.0
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user