mirror of https://github.com/tuyoogame/YooAsset
update extension sample
parent
589eea7cf3
commit
30245b3668
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#if UNITY_WECHAT_GAME
|
#if UNITY_WEBGL && WEIXINMINIGAME
|
||||||
using YooAsset;
|
using YooAsset;
|
||||||
|
|
||||||
internal class WXFSLoadPackageManifestOperation : FSLoadPackageManifestOperation
|
internal class WXFSLoadPackageManifestOperation : FSLoadPackageManifestOperation
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#if UNITY_WECHAT_GAME
|
#if UNITY_WEBGL && WEIXINMINIGAME
|
||||||
using YooAsset;
|
using YooAsset;
|
||||||
|
|
||||||
internal class WXFSRequestPackageVersionOperation : FSRequestPackageVersionOperation
|
internal class WXFSRequestPackageVersionOperation : FSRequestPackageVersionOperation
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#if UNITY_WECHAT_GAME
|
#if UNITY_WEBGL && WEIXINMINIGAME
|
||||||
using YooAsset;
|
using YooAsset;
|
||||||
|
|
||||||
internal class LoadWechatPackageManifestOperation : AsyncOperationBase
|
internal class LoadWechatPackageManifestOperation : AsyncOperationBase
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#if UNITY_WECHAT_GAME
|
#if UNITY_WEBGL && WEIXINMINIGAME
|
||||||
using YooAsset;
|
using YooAsset;
|
||||||
|
|
||||||
internal class RequestWechatPackageHashOperation : AsyncOperationBase
|
internal class RequestWechatPackageHashOperation : AsyncOperationBase
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#if UNITY_WECHAT_GAME
|
#if UNITY_WEBGL && WEIXINMINIGAME
|
||||||
using YooAsset;
|
using YooAsset;
|
||||||
|
|
||||||
internal class RequestWechatPackageVersionOperation : AsyncOperationBase
|
internal class RequestWechatPackageVersionOperation : AsyncOperationBase
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue