mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-26 18:26:23 +00:00
提交
This commit is contained in:
@@ -147,7 +147,6 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 67180524}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
@@ -156,6 +155,7 @@ Transform:
|
||||
- {fileID: 1371077986}
|
||||
- {fileID: 296179531}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &67180526
|
||||
MonoBehaviour:
|
||||
@@ -193,13 +193,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 296179530}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 67180525}
|
||||
m_RootOrder: -2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &296179532
|
||||
MonoBehaviour:
|
||||
@@ -237,13 +237,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1371077985}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 67180525}
|
||||
m_RootOrder: -2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1371077987
|
||||
MonoBehaviour:
|
||||
@@ -354,13 +354,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1460349557}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 8.688524, y: -5, z: 0}
|
||||
m_LocalPosition: {x: 6.8842363, y: -5, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1994723394
|
||||
GameObject:
|
||||
@@ -406,18 +406,11 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1994723394}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1660057539 &9223372036854775807
|
||||
SceneRoots:
|
||||
m_ObjectHideFlags: 0
|
||||
m_Roots:
|
||||
- {fileID: 1460349560}
|
||||
- {fileID: 67180525}
|
||||
- {fileID: 1994723396}
|
||||
|
@@ -2,13 +2,16 @@ namespace HotMain
|
||||
{
|
||||
public class HotMainEvent
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 开始下载资源
|
||||
/// </summary>
|
||||
public static string StartDownloader = "HotMainEvent_StartDownloader";
|
||||
|
||||
/// <summary>
|
||||
/// 下载资源中进度更新 totalCount, currentCount, totalBytes, currentBytes
|
||||
/// </summary>
|
||||
public static string DownloaderProgressUpdate = "HotMainEvent_DownloaderProgressUpdate";
|
||||
|
||||
}
|
||||
}
|
@@ -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