mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -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 =
|
||||
|
@@ -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}");
|
||||
}
|
||||
|
@@ -1,5 +1,4 @@
|
||||
using System.IO;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using YooAsset;
|
||||
|
||||
|
Reference in New Issue
Block a user