热更系统修改并测试

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

@@ -13,7 +13,7 @@ public class Boot : MonoBehaviour
void Awake()
{
#if UNITY_EDITOR
PlayerPrefs.DeleteAll();
//PlayerPrefs.DeleteAll();
#endif
Application.targetFrameRate = 60;
Application.runInBackground = true;
@@ -35,6 +35,9 @@ public class Boot : MonoBehaviour
var assetHandle = YooAssets.TryGetPackage("Main").LoadSceneAsync("Test");
await assetHandle.ToUniTask();
if (assetHandle.Status == EOperationStatus.Succeed)
{
assetHandle.ActivateScene();
PatchEvent.ClosePatchWindow();
}
}
}