热更系统修改并测试
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user