This commit is contained in:
PC-20230316NUNE\Administrator
2024-10-16 20:41:40 +08:00
parent 44c3ea001a
commit 6da2f9e691
1866 changed files with 36068 additions and 25732 deletions

View File

@@ -12,8 +12,11 @@ namespace HotMain.SHGame.Procedure
/// </summary>
public class ProcedureInitializePackage : ProcedureBase
{
#if UNITY_EDITOR
public static EPlayMode PlayMode = EPlayMode.EditorSimulateMode;
#else
public static EPlayMode PlayMode = EPlayMode.HostPlayMode;
#endif
public static string RawFilePackageName = "RawFilePackage";
public static string DefaultPackageName = "DefaultPackage";
@@ -22,6 +25,8 @@ namespace HotMain.SHGame.Procedure
public static readonly string[] HotDllName =
{
"HotSamples.dll",
"GameLauncher.dll",
"GameScripts.dll",
};
public static readonly string[] AotMetaAssemblyFiles =

View File

@@ -22,10 +22,10 @@ namespace HotMain.SHGame.Procedure
{
await LoadHotfixDll(ProcedureInitializePackage.RawFilePackageName, name);
}
// 实例化热更新入口 执行游戏初始化配置表初始化、UI模块初始化、获取玩家数据之类的操作
//热更新完成
ResourcePackage package = YooAssets.GetPackage(ProcedureInitializePackage.DefaultPackageName);
var go = await LoadGameObject(package, "HotPrefab");
var go = await LoadGameObject(package, "HotGameMain");
go.name = $"Resource_{package.GetPackageVersion()}_{YooAssets.GetPackage(ProcedureInitializePackage.RawFilePackageName).GetPackageVersion()}";
Log.Warning($"Prefab name is {go.name}");
}