using Blue;
using UnityEngine.Networking;
public class UnityWebRequestUtility : IUtility
{
///
/// 获取下载进度
///
public float GetProcess(UnityWebRequest webRequestPoint)
{
if (webRequestPoint != null)
{
return webRequestPoint.downloadProgress;
}
return 0;
}
///
/// 获取当前下载内容长度
///
public long GetCurrentLength(UnityWebRequest webRequestPoint)
{
if (webRequestPoint != null)
{
return (long)webRequestPoint.downloadedBytes;
}
return 0;
}
}