热更系统修改并测试

This commit is contained in:
2025-11-04 16:19:53 +08:00
parent db6f5d147e
commit 4ba496506d
25 changed files with 477 additions and 2122 deletions

View File

@@ -0,0 +1,9 @@
using UnityEngine;
public class GamePreload : Singleton<GamePreload>
{
public void Test(string msg)
{
Debug.Log($"GamePreload.Test:{msg}");
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: f70a842d4d8919e41a34b7ad7012e9ff

View File

@@ -14,6 +14,7 @@ public class PatchWindow : MonoBehaviour
PatchEvent.OnStatusUpdate += OnStatusUpdate;
PatchEvent.OnProgressUpdate += OnProgressUpdate;
PatchEvent.OnDownloadSizeUpdate += OnDownloadSizeUpdate;
PatchEvent.OnClosePatchWindow += OnClosePatchWindow;
}
private void OnDestroy()
{
@@ -39,4 +40,8 @@ public class PatchWindow : MonoBehaviour
if (downloadSizeText != null)
downloadSizeText.text = sizeText;
}
private void OnClosePatchWindow()
{
gameObject.SetActive(false);
}
}