12345678910111213141516171819202122232425262728293031323334 |
- 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<byte[], int> OnReceiveData;
-
-
-
-
-
-
- protected override bool ReceiveData(byte[] data, int dataLength)
- {
- if (data != null && data.Length > 0)
- {
- OnReceiveData?.Invoke(data, dataLength);
- }
- return base.ReceiveData(data, dataLength);
- }
- }
- }
|