update runtime code

支持开发者资源分发和加载
This commit is contained in:
hevinci
2023-07-19 17:06:20 +08:00
parent b5df539392
commit b737b20602
4 changed files with 42 additions and 1 deletions
@@ -72,6 +72,11 @@ namespace YooAsset
_steps = ESteps.LoadFile;
FileLoadPath = MainBundleInfo.Bundle.CachedDataFilePath;
}
else if (MainBundleInfo.LoadMode == BundleInfo.ELoadMode.LoadFromDelivery)
{
_steps = ESteps.LoadFile;
FileLoadPath = MainBundleInfo.DeliveryFilePath;
}
else
{
throw new System.NotImplementedException(MainBundleInfo.LoadMode.ToString());