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; } } }