Files
YooAssetScene/Assets/YooAsset/Runtime/FileSystem/Operation/FSDownloadFileOperation.cs
T
2026-01-16 10:28:01 +08:00

26 lines
643 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace YooAsset
{
internal abstract class FSDownloadFileOperation : AsyncOperationBase
{
public PackageBundle Bundle { private set; get; }
/// <summary>
/// 当前下载的字节数
/// </summary>
public long DownloadedBytes { protected set; get; }
/// <summary>
/// 当前下载进度(0f - 1f)
/// </summary>
public float DownloadProgress { protected set; get; }
public FSDownloadFileOperation(PackageBundle bundle)
{
Bundle = bundle;
DownloadedBytes = 0;
DownloadProgress = 0;
}
}
}