mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
同步GameApp、Procedure里简化IUpdateDriver的调用
This commit is contained in:
@@ -22,7 +22,7 @@ public partial class GameApp
|
|||||||
_hotfixAssembly = (List<Assembly>)objects[0];
|
_hotfixAssembly = (List<Assembly>)objects[0];
|
||||||
Log.Warning("======= 看到此条日志代表你成功运行了热更新代码 =======");
|
Log.Warning("======= 看到此条日志代表你成功运行了热更新代码 =======");
|
||||||
Log.Warning("======= Entrance GameApp =======");
|
Log.Warning("======= Entrance GameApp =======");
|
||||||
ModuleSystem.GetModule<IUpdateDriver>().AddDestroyListener(Release);
|
Utility.Unity.AddDestroyListener(Release);
|
||||||
StartGameLogic();
|
StartGameLogic();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@ namespace Procedure
|
|||||||
LauncherMgr.Show(UIDefine.UILoadUpdate, "初始化资源中...");
|
LauncherMgr.Show(UIDefine.UILoadUpdate, "初始化资源中...");
|
||||||
|
|
||||||
// 注意:使用单机模式并初始化资源前,需要先构建 AssetBundle 并复制到 StreamingAssets 中,否则会产生 HTTP 404 错误
|
// 注意:使用单机模式并初始化资源前,需要先构建 AssetBundle 并复制到 StreamingAssets 中,否则会产生 HTTP 404 错误
|
||||||
ModuleSystem.GetModule<IUpdateDriver>().StartCoroutine(InitResources(procedureOwner));
|
Utility.Unity.StartCoroutine(InitResources(procedureOwner));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnUpdate(ProcedureOwner procedureOwner, float elapseSeconds, float realElapseSeconds)
|
protected override void OnUpdate(ProcedureOwner procedureOwner, float elapseSeconds, float realElapseSeconds)
|
||||||
@@ -88,7 +88,7 @@ namespace Procedure
|
|||||||
LoadStyle.StyleEnum.Style_Retry
|
LoadStyle.StyleEnum.Style_Retry
|
||||||
, () =>
|
, () =>
|
||||||
{
|
{
|
||||||
ModuleSystem.GetModule<IUpdateDriver>().StartCoroutine(InitResources(procedureOwner));
|
Utility.Unity.StartCoroutine(InitResources(procedureOwner));
|
||||||
}, UnityEngine.Application.Quit);
|
}, UnityEngine.Application.Quit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user