update extension sample

pull/326/head
何冠峰 2024-07-10 16:50:19 +08:00
parent 589eea7cf3
commit 30245b3668
9 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,4 @@
#if UNITY_WECHAT_GAME #if UNITY_WEBGL && WEIXINMINIGAME
using UnityEngine; using UnityEngine;
using UnityEngine.Networking; using UnityEngine.Networking;
using YooAsset; using YooAsset;

View File

@ -1,4 +1,4 @@
#if UNITY_WECHAT_GAME #if UNITY_WEBGL && WEIXINMINIGAME
using YooAsset; using YooAsset;
internal partial class WXFSInitializeOperation : FSInitializeFileSystemOperation internal partial class WXFSInitializeOperation : FSInitializeFileSystemOperation

View File

@ -1,4 +1,4 @@
#if UNITY_WECHAT_GAME #if UNITY_WEBGL && WEIXINMINIGAME
using UnityEngine; using UnityEngine;
using UnityEngine.Networking; using UnityEngine.Networking;
using YooAsset; using YooAsset;

View File

@ -1,4 +1,4 @@
#if UNITY_WECHAT_GAME #if UNITY_WEBGL && WEIXINMINIGAME
using YooAsset; using YooAsset;
internal class WXFSLoadPackageManifestOperation : FSLoadPackageManifestOperation internal class WXFSLoadPackageManifestOperation : FSLoadPackageManifestOperation

View File

@ -1,4 +1,4 @@
#if UNITY_WECHAT_GAME #if UNITY_WEBGL && WEIXINMINIGAME
using YooAsset; using YooAsset;
internal class WXFSRequestPackageVersionOperation : FSRequestPackageVersionOperation internal class WXFSRequestPackageVersionOperation : FSRequestPackageVersionOperation

View File

@ -1,4 +1,4 @@
#if UNITY_WECHAT_GAME #if UNITY_WEBGL && WEIXINMINIGAME
using YooAsset; using YooAsset;
internal class LoadWechatPackageManifestOperation : AsyncOperationBase internal class LoadWechatPackageManifestOperation : AsyncOperationBase

View File

@ -1,4 +1,4 @@
#if UNITY_WECHAT_GAME #if UNITY_WEBGL && WEIXINMINIGAME
using YooAsset; using YooAsset;
internal class RequestWechatPackageHashOperation : AsyncOperationBase internal class RequestWechatPackageHashOperation : AsyncOperationBase

View File

@ -1,4 +1,4 @@
#if UNITY_WECHAT_GAME #if UNITY_WEBGL && WEIXINMINIGAME
using YooAsset; using YooAsset;
internal class RequestWechatPackageVersionOperation : AsyncOperationBase internal class RequestWechatPackageVersionOperation : AsyncOperationBase

View File

@ -1,4 +1,4 @@
#if UNITY_WECHAT_GAME #if UNITY_WEBGL && WEIXINMINIGAME
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using YooAsset; using YooAsset;
@ -52,12 +52,12 @@ internal class WechatFileSystem : IFileSystem
} }
} }
#region 自定义参数 #region 自定义参数
/// <summary> /// <summary>
/// 自定义参数:远程服务接口 /// 自定义参数:远程服务接口
/// </summary> /// </summary>
public IRemoteServices RemoteServices { private set; get; } = null; public IRemoteServices RemoteServices { private set; get; } = null;
#endregion #endregion
public WechatFileSystem() public WechatFileSystem()
@ -171,7 +171,7 @@ internal class WechatFileSystem : IFileSystem
throw new System.NotImplementedException(); throw new System.NotImplementedException();
} }
#region 内部方法 #region 内部方法
private string GetWXFileLoadPath(PackageBundle bundle) private string GetWXFileLoadPath(PackageBundle bundle)
{ {
if (_wxFilePaths.TryGetValue(bundle.BundleGUID, out string filePath) == false) if (_wxFilePaths.TryGetValue(bundle.BundleGUID, out string filePath) == false)
@ -181,6 +181,6 @@ internal class WechatFileSystem : IFileSystem
} }
return filePath; return filePath;
} }
#endregion #endregion
} }
#endif #endif