update extension sample

This commit is contained in:
何冠峰
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