using MRStore.Util;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
namespace XRTool.Util
{
///
/// 自定义下载器
/// 支持大文件断点续传
///
public class DataDownLoadHandler : DownloadHandlerScript
{
///
/// 接收到数据
///
public event Action OnReceiveData;
///
/// 接收数据
///
///
///
///
protected override bool ReceiveData(byte[] data, int dataLength)
{
if (data != null && data.Length > 0)
{
OnReceiveData?.Invoke(data, dataLength);
}
return base.ReceiveData(data, dataLength);
}
}
}