mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update ProcedureCodeInit.cs
This commit is contained in:
@@ -29,10 +29,10 @@ namespace TEngine.Runtime
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
Assembly hotfixAssembly = System.AppDomain.CurrentDomain.GetAssemblies().First(assembly => assembly.GetName().Name == "Game.Hotfix");
|
||||
Assembly hotfixAssembly = System.AppDomain.CurrentDomain.GetAssemblies().First(assembly => assembly.GetName().Name == "HotFix");
|
||||
StartHotfix(hotfixAssembly);
|
||||
#else
|
||||
TResources.LoadAsync("Assets/Game/Hotfix/Game.Hotfix.dll.bytes", (data =>
|
||||
TResources.LoadAsync("Dll/HotFix.dll.bytes", (data =>
|
||||
{
|
||||
if (data == null)
|
||||
{
|
||||
@@ -69,7 +69,7 @@ namespace TEngine.Runtime
|
||||
|
||||
private void StartHotfix(Assembly hotfixAssembly)
|
||||
{
|
||||
var hotfixEntry = hotfixAssembly.GetType("Game.Hotfix.GameHotfixEntry");
|
||||
var hotfixEntry = hotfixAssembly.GetType("HotFix.GameHotfixEntry");
|
||||
var start = hotfixEntry.GetMethod("Start");
|
||||
start?.Invoke(null, null);
|
||||
ChangeState<ProcedureStartGame>(m_procedureOwner);
|
||||
|
Reference in New Issue
Block a user