mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-14 19:40:47 +00:00
Update asset system
支持WebGL
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user