mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Init TEngine4.0.0
Init TEngine4.0.0
This commit is contained in:
@@ -3,6 +3,9 @@ using System.Reflection;
|
||||
using GameBase;
|
||||
using TEngine;
|
||||
|
||||
/// <summary>
|
||||
/// 游戏App。
|
||||
/// </summary>
|
||||
public partial class GameApp:Singleton<GameApp>
|
||||
{
|
||||
private static List<Assembly> _hotfixAssembly;
|
||||
@@ -24,6 +27,7 @@ public partial class GameApp:Singleton<GameApp>
|
||||
Utility.Unity.AddDestroyListener(Instance.OnDestroy);
|
||||
Utility.Unity.AddOnDrawGizmosListener(Instance.OnDrawGizmos);
|
||||
Utility.Unity.AddOnApplicationPauseListener(Instance.OnApplicationPause);
|
||||
GameModule.Procedure.RestartProcedure(new GameLogic.OnEnterGameAppProcedure());
|
||||
Instance.StartGameLogic();
|
||||
}
|
||||
|
||||
@@ -33,7 +37,7 @@ public partial class GameApp:Singleton<GameApp>
|
||||
/// </summary>
|
||||
private void StartGameLogic()
|
||||
{
|
||||
GameModule.UI.ShowUI<GameLogic.GameMainUI>();
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user