diff --git a/Assets/YooAsset/Runtime/PackageSystem/PlayMode/HostPlayModeImpl.cs b/Assets/YooAsset/Runtime/PackageSystem/PlayMode/HostPlayModeImpl.cs index b0e954d..64ca7cc 100644 --- a/Assets/YooAsset/Runtime/PackageSystem/PlayMode/HostPlayModeImpl.cs +++ b/Assets/YooAsset/Runtime/PackageSystem/PlayMode/HostPlayModeImpl.cs @@ -51,6 +51,16 @@ namespace YooAsset return bundleInfo; } + // 查询相关 + private bool IsBuildinPackageBundle(PackageBundle packageBundle) + { + return _queryServices.QueryStreamingAssets(_packageName, packageBundle.FileName); + } + private bool IsCachedPackageBundle(PackageBundle packageBundle) + { + return CacheSystem.IsCached(packageBundle.PackageName, packageBundle.CacheGUID); + } + #region IPlayModeServices接口 public PackageManifest ActiveManifest { @@ -71,15 +81,6 @@ namespace YooAsset } } - private bool IsBuildinPackageBundle(PackageBundle packageBundle) - { - return _queryServices.QueryStreamingAssets(_packageName, packageBundle.FileName); - } - private bool IsCachedPackageBundle(PackageBundle packageBundle) - { - return CacheSystem.IsCached(packageBundle.PackageName, packageBundle.CacheGUID); - } - UpdatePackageVersionOperation IPlayModeServices.UpdatePackageVersionAsync(bool appendTimeTicks, int timeout) { var operation = new HostPlayModeUpdatePackageVersionOperation(this, _packageName, appendTimeTicks, timeout); diff --git a/Assets/YooAsset/Runtime/PackageSystem/PlayMode/OfflinePlayModeImpl.cs b/Assets/YooAsset/Runtime/PackageSystem/PlayMode/OfflinePlayModeImpl.cs index 50c1a2d..073208c 100644 --- a/Assets/YooAsset/Runtime/PackageSystem/PlayMode/OfflinePlayModeImpl.cs +++ b/Assets/YooAsset/Runtime/PackageSystem/PlayMode/OfflinePlayModeImpl.cs @@ -18,6 +18,12 @@ namespace YooAsset return operation; } + // 查询相关 + private bool IsCachedPackageBundle(PackageBundle packageBundle) + { + return CacheSystem.IsCached(packageBundle.PackageName, packageBundle.CacheGUID); + } + #region IPlayModeServices接口 public PackageManifest ActiveManifest { @@ -34,11 +40,6 @@ namespace YooAsset { } - private bool IsCachedPackageBundle(PackageBundle packageBundle) - { - return CacheSystem.IsCached(packageBundle.PackageName, packageBundle.CacheGUID); - } - UpdatePackageVersionOperation IPlayModeServices.UpdatePackageVersionAsync(bool appendTimeTicks, int timeout) { var operation = new OfflinePlayModeUpdatePackageVersionOperation(); diff --git a/Assets/YooAsset/Runtime/PackageSystem/PlayMode/WebPlayModeImpl.cs b/Assets/YooAsset/Runtime/PackageSystem/PlayMode/WebPlayModeImpl.cs index cd07354..2b14e44 100644 --- a/Assets/YooAsset/Runtime/PackageSystem/PlayMode/WebPlayModeImpl.cs +++ b/Assets/YooAsset/Runtime/PackageSystem/PlayMode/WebPlayModeImpl.cs @@ -41,6 +41,12 @@ namespace YooAsset return bundleInfo; } + // 查询相关 + private bool IsBuildinPackageBundle(PackageBundle packageBundle) + { + return _queryServices.QueryStreamingAssets(_packageName, packageBundle.FileName); + } + #region IPlayModeServices接口 public PackageManifest ActiveManifest { @@ -57,11 +63,6 @@ namespace YooAsset { } - private bool IsBuildinPackageBundle(PackageBundle packageBundle) - { - return _queryServices.QueryStreamingAssets(_packageName, packageBundle.FileName); - } - UpdatePackageVersionOperation IPlayModeServices.UpdatePackageVersionAsync(bool appendTimeTicks, int timeout) { var operation = new WebPlayModeUpdatePackageVersionOperation(this, _packageName, appendTimeTicks, timeout);