46 lines
851 B
C#
46 lines
851 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using UnityEngine;
|
|
|
|
namespace Thousandto.Core.Base
|
|
{
|
|
/// <summary>
|
|
/// 图片资源请求
|
|
/// </summary>
|
|
public class BytesAssetRequest : IAssetRequest
|
|
{
|
|
private BytesAsset _asset;
|
|
|
|
public UnityEngine.Object Asset
|
|
{
|
|
get
|
|
{
|
|
return _asset;
|
|
}
|
|
}
|
|
|
|
public bool IsDone
|
|
{
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
public float Progress
|
|
{
|
|
get
|
|
{
|
|
return 1f;
|
|
}
|
|
}
|
|
|
|
public BytesAssetRequest(string name,byte[] bytes, object param)
|
|
{
|
|
_asset = new BytesAsset(name, bytes,param);
|
|
}
|
|
}
|
|
}
|