AkiraPixelWind/Assets/Axibug/Script/Runtime/WebRequest/WWWFormInfo.cs
2022-12-29 18:20:40 +08:00

47 lines
960 B
C#

using UnityEngine;
namespace Axibug.Runtime
{
internal sealed class WWWFormInfo : IReference
{
private WWWForm m_WWWForm;
private object m_UserData;
public WWWFormInfo()
{
m_WWWForm = null;
m_UserData = null;
}
public WWWForm WWWForm
{
get
{
return m_WWWForm;
}
}
public object UserData
{
get
{
return m_UserData;
}
}
public static WWWFormInfo Create(WWWForm wwwForm, object userData)
{
WWWFormInfo wwwFormInfo = ReferencePool.Acquire<WWWFormInfo>();
wwwFormInfo.m_WWWForm = wwwForm;
wwwFormInfo.m_UserData = userData;
return wwwFormInfo;
}
public void Clear()
{
m_WWWForm = null;
m_UserData = null;
}
}
}