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>();
|
||||
}
|
||||
|
||||
|
@@ -10,7 +10,8 @@
|
||||
"GUID:47f9fc774596be54ebfed7739cd70c86",
|
||||
"GUID:1aa3e8589868c80499255710874679c0",
|
||||
"GUID:d8b63aba1907145bea998dd612889d6b",
|
||||
"GUID:756335c0388f7114790e504ed368ae1d"
|
||||
"GUID:756335c0388f7114790e504ed368ae1d",
|
||||
"GUID:4140bd2e2764f1f47ab93125ecb61942"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
|
@@ -1,9 +1,8 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using TEngine;
|
||||
|
||||
namespace GameLogic
|
||||
{
|
||||
[Obfuz.ObfuzIgnore(Obfuz.ObfuzScope.TypeName)]
|
||||
[Window(UILayer.UI)]
|
||||
class BattleMainUI : UIWindow
|
||||
{
|
||||
|
Reference in New Issue
Block a user