19 lines
346 B
C#
19 lines
346 B
C#
using OnlySocketHttp;
|
|
using UnityEngine;
|
|
|
|
class UnityWaitOSRequest : CustomYieldInstruction
|
|
{
|
|
RequestAsync mReqAsync;
|
|
public UnityWaitOSRequest(RequestAsync reqAsync)
|
|
{
|
|
mReqAsync = reqAsync;
|
|
}
|
|
~UnityWaitOSRequest()
|
|
{
|
|
mReqAsync = null;
|
|
}
|
|
public override bool keepWaiting
|
|
{
|
|
get { return !mReqAsync.isDone; }
|
|
}
|
|
} |