diff --git a/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/DCFSLoadBundleOperation.cs b/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/DCFSLoadBundleOperation.cs index 6d6e62b..4942313 100644 --- a/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/DCFSLoadBundleOperation.cs +++ b/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/DCFSLoadBundleOperation.cs @@ -31,8 +31,6 @@ namespace YooAsset { if (_fileSystem.CheckNeedDownload(_bundle)) { - DownloadProgress = 0f; - DownloadedBytes = 0; _steps = ESteps.DownloadFile; } else @@ -219,8 +217,6 @@ namespace YooAsset { if (_fileSystem.CheckNeedDownload(_bundle)) { - DownloadProgress = 0f; - DownloadedBytes = 0; _steps = ESteps.DownloadFile; } else diff --git a/Assets/YooAsset/Runtime/FileSystem/DefaultWebFileSystem/Operation/DWFSLoadBundleOperation.cs b/Assets/YooAsset/Runtime/FileSystem/DefaultWebFileSystem/Operation/DWFSLoadBundleOperation.cs index 1313863..2ee6c2b 100644 --- a/Assets/YooAsset/Runtime/FileSystem/DefaultWebFileSystem/Operation/DWFSLoadBundleOperation.cs +++ b/Assets/YooAsset/Runtime/FileSystem/DefaultWebFileSystem/Operation/DWFSLoadBundleOperation.cs @@ -24,8 +24,6 @@ namespace YooAsset } internal override void InternalOnStart() { - DownloadProgress = 0f; - DownloadedBytes = 0; _steps = ESteps.DownloadFile; } internal override void InternalOnUpdate() diff --git a/Assets/YooAsset/Runtime/FileSystem/Operation/Internal/FSLoadBundleFileOperation.cs b/Assets/YooAsset/Runtime/FileSystem/Operation/Internal/FSLoadBundleFileOperation.cs index 6313396..ccd6e07 100644 --- a/Assets/YooAsset/Runtime/FileSystem/Operation/Internal/FSLoadBundleFileOperation.cs +++ b/Assets/YooAsset/Runtime/FileSystem/Operation/Internal/FSLoadBundleFileOperation.cs @@ -12,12 +12,12 @@ namespace YooAsset /// /// 下载进度 /// - public float DownloadProgress { protected set; get; } + public float DownloadProgress { protected set; get; } = 0; /// /// 下载大小 /// - public long DownloadedBytes { protected set; get; } + public long DownloadedBytes { protected set; get; } = 0; /// /// 终止下载任务