diff --git a/Assets/YooAsset/Runtime/FileSystem/Interfaces/IWebGamePlatform.cs b/Assets/YooAsset/Runtime/FileSystem/Interfaces/IWebGamePlatform.cs
index 0ac5bb4a..9007bd41 100644
--- a/Assets/YooAsset/Runtime/FileSystem/Interfaces/IWebGamePlatform.cs
+++ b/Assets/YooAsset/Runtime/FileSystem/Interfaces/IWebGamePlatform.cs
@@ -28,20 +28,5 @@ namespace YooAsset
/// 待卸载的 AssetBundle 实例
/// 是否同时卸载所有已加载的资源对象
void UnloadAssetBundle(AssetBundle assetBundle, bool unloadAll);
-
- ///
- /// 检查指定资源包是否已在平台缓存中
- ///
- /// 资源包在本地缓存中的文件路径
- /// 如果已缓存则返回 true,否则返回 false。
- bool IsCached(string cacheFilePath);
-
- ///
- /// 获取资源包在平台缓存中的文件路径
- ///
- /// 缓存根目录
- /// 资源包描述
- /// 缓存文件的完整路径
- string GetCacheFilePath(string rootPath, PackageBundle bundle);
}
}
diff --git a/Assets/YooAsset/Samples~/Mini Game/Runtime/AlipayFileSystem/AlipayPlatform.cs b/Assets/YooAsset/Samples~/Mini Game/Runtime/AlipayFileSystem/AlipayPlatform.cs
index 07573608..e230aa3e 100644
--- a/Assets/YooAsset/Samples~/Mini Game/Runtime/AlipayFileSystem/AlipayPlatform.cs
+++ b/Assets/YooAsset/Samples~/Mini Game/Runtime/AlipayFileSystem/AlipayPlatform.cs
@@ -28,17 +28,5 @@ internal class AlipayPlatform : IWebGamePlatform
{
assetBundle.APUnload(unloadAll);
}
-
- ///
- public bool IsCached(string cacheFilePath)
- {
- return false;
- }
-
- ///
- public string GetCacheFilePath(string rootPath, PackageBundle bundle)
- {
- return PathUtility.Combine(rootPath, bundle.GetFileName());
- }
}
#endif
diff --git a/Assets/YooAsset/Samples~/Mini Game/Runtime/TaptapFileSystem/TaptapPlatform.cs b/Assets/YooAsset/Samples~/Mini Game/Runtime/TaptapFileSystem/TaptapPlatform.cs
index 5347d940..5becc395 100644
--- a/Assets/YooAsset/Samples~/Mini Game/Runtime/TaptapFileSystem/TaptapPlatform.cs
+++ b/Assets/YooAsset/Samples~/Mini Game/Runtime/TaptapFileSystem/TaptapPlatform.cs
@@ -28,17 +28,5 @@ internal class TaptapPlatform : IWebGamePlatform
{
assetBundle.TapUnload(unloadAll);
}
-
- ///
- public bool IsCached(string cacheFilePath)
- {
- return false;
- }
-
- ///
- public string GetCacheFilePath(string rootPath, PackageBundle bundle)
- {
- return PathUtility.Combine(rootPath, bundle.GetFileName());
- }
}
#endif
diff --git a/Assets/YooAsset/Samples~/Mini Game/Runtime/TiktokFileSystem/TiktokFileSystem.cs b/Assets/YooAsset/Samples~/Mini Game/Runtime/TiktokFileSystem/TiktokFileSystem.cs
index 70e6cd93..d5bcc58f 100644
--- a/Assets/YooAsset/Samples~/Mini Game/Runtime/TiktokFileSystem/TiktokFileSystem.cs
+++ b/Assets/YooAsset/Samples~/Mini Game/Runtime/TiktokFileSystem/TiktokFileSystem.cs
@@ -1,6 +1,5 @@
#if UNITY_WEBGL && DOUYINMINIGAME
using YooAsset;
-using TTSDK;
public static class TiktokFileSystemCreater
{
@@ -29,7 +28,7 @@ internal class TiktokFileSystem : WebGameFileSystem
///
protected override IWebGamePlatform CreatePlatform(string packageRoot)
{
- return new TiktokPlatform(TT.GetFileSystemManager());
+ return new TiktokPlatform();
}
}
#endif
diff --git a/Assets/YooAsset/Samples~/Mini Game/Runtime/TiktokFileSystem/TiktokPlatform.cs b/Assets/YooAsset/Samples~/Mini Game/Runtime/TiktokFileSystem/TiktokPlatform.cs
index 1a901ce1..ee7434a4 100644
--- a/Assets/YooAsset/Samples~/Mini Game/Runtime/TiktokFileSystem/TiktokPlatform.cs
+++ b/Assets/YooAsset/Samples~/Mini Game/Runtime/TiktokFileSystem/TiktokPlatform.cs
@@ -9,17 +9,6 @@ using TTSDK;
///
internal class TiktokPlatform : IWebGamePlatform
{
- private readonly TTFileSystemManager _fileSystemMgr;
-
- ///
- /// 创建 TiktokPlatform 实例
- ///
- /// 抖音文件系统管理器
- internal TiktokPlatform(TTFileSystemManager fileSystemMgr)
- {
- _fileSystemMgr = fileSystemMgr;
- }
-
///
public UnityWebRequest CreateAssetBundleRequest(string url)
{
@@ -38,17 +27,5 @@ internal class TiktokPlatform : IWebGamePlatform
{
assetBundle.TTUnload(unloadAll);
}
-
- ///
- public bool IsCached(string cacheFilePath)
- {
- return false;
- }
-
- ///
- public string GetCacheFilePath(string rootPath, PackageBundle bundle)
- {
- return _fileSystemMgr.GetLocalCachedPathForUrl(bundle.GetFileName());
- }
}
#endif
diff --git a/Assets/YooAsset/Samples~/Mini Game/Runtime/WechatFileSystem/WechatPlatform.cs b/Assets/YooAsset/Samples~/Mini Game/Runtime/WechatFileSystem/WechatPlatform.cs
index b22f0077..90828bee 100644
--- a/Assets/YooAsset/Samples~/Mini Game/Runtime/WechatFileSystem/WechatPlatform.cs
+++ b/Assets/YooAsset/Samples~/Mini Game/Runtime/WechatFileSystem/WechatPlatform.cs
@@ -27,21 +27,5 @@ internal class WechatPlatform : IWebGamePlatform
{
assetBundle.WXUnload(unloadAll);
}
-
- ///
- public bool IsCached(string cacheFilePath)
- {
- if (string.IsNullOrEmpty(cacheFilePath))
- return false;
-
- string result = WX.GetCachePath(cacheFilePath);
- return string.IsNullOrEmpty(result) == false;
- }
-
- ///
- public string GetCacheFilePath(string rootPath, PackageBundle bundle)
- {
- return PathUtility.Combine(rootPath, bundle.GetFileName());
- }
}
#endif