Update asset system

支持WebGL
pull/40/head
hevinci 2022-08-30 18:04:16 +08:00
parent a9e858bc9a
commit 7e20c39fb3
1 changed files with 11 additions and 1 deletions

View File

@ -38,7 +38,17 @@ namespace YooAsset
if (_steps == ESteps.None) if (_steps == ESteps.None)
{ {
if (MainBundleInfo.LoadMode == BundleInfo.ELoadMode.LoadFromStreaming) if (MainBundleInfo.LoadMode == BundleInfo.ELoadMode.LoadFromRemote)
{
_steps = ESteps.LoadFile;
_webURL = MainBundleInfo.RemoteMainURL;
}
else if (MainBundleInfo.LoadMode == BundleInfo.ELoadMode.LoadFromCache)
{
_steps = ESteps.LoadFile;
_webURL = MainBundleInfo.Bundle.CachedFilePath;
}
else if (MainBundleInfo.LoadMode == BundleInfo.ELoadMode.LoadFromStreaming)
{ {
_steps = ESteps.LoadFile; _steps = ESteps.LoadFile;
_webURL = MainBundleInfo.Bundle.StreamingFilePath; _webURL = MainBundleInfo.Bundle.StreamingFilePath;