Skip to content

Commit

Permalink
Merge branch 'main' of github.com:gameframex/com.gameframex.unity.asset
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Aug 20, 2024
2 parents 7a90ae0 + 3daf37d commit 8f84589
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Runtime/Asset/AssetManager.Initialization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,23 @@ private InitializationOperation InitializeYooAssetOfflinePlayMode(ResourcePackag

private InitializationOperation InitializeYooAssetWebPlayMode(ResourcePackage resourcePackage, string hostServerURL, string fallbackHostServerURL)
{
var initParameters = new WebPlayModeParameters();
#if UNITY_WEBGL

#if ENABLE_DOUYIN_MINI_GAME
// 创建微信小游戏文件系统
var webFileSystem = DouYinFileSystemCreater.CreateDouYinFileSystemParameters(resourcePackage.PackageName);
#elif ENABLE_WECHAT_MINI_GAME
// 创建微信小游戏文件系统
var webFileSystem = WechatFileSystemCreater.CreateWechatFileSystemParameters(null);
var webFileSystem = WechatFileSystemCreater.CreateWechatFileSystemParameters();
#else
// 创建默认WebGL文件系统
var webFileSystem = FileSystemParameters.CreateDefaultWebFileSystemParameters();
#endif
#else
var webFileSystem = FileSystemParameters.CreateDefaultWebFileSystemParameters();
#endif

var initParameters = new WebPlayModeParameters
{
WebFileSystemParameters = webFileSystem,
};
initParameters.WebFileSystemParameters = webFileSystem;
return resourcePackage.InitializeAsync(initParameters);
}

Expand Down

0 comments on commit 8f84589

Please sign in to comment.