コード例 #1
0
 private void internalCallback()
 {
     if (_callback != null)
     {
         _callback(_getMyWwwFacade.getStatusFromFinishedWWW(_www, _sw, _callParams));
     }
 }
コード例 #2
0
    private WebServiceReturnStatus doWWWCall(WWW www, ITransfluentParameters wsParams = null)
    {
        var sw = new Stopwatch();

        sw.Start();
        while (true)
        {
            if (www.isDone)
            {
                break;
            }
            if (www.error != null)
            {
                break;
            }
            if (sw.Elapsed.TotalSeconds >= 1000f)
            {
                break;
            }

            //EditorApplication.Step();
            Thread.Sleep(100);
        }

        return(_getMyWwwFacade.getStatusFromFinishedWWW(www, sw, wsParams));
    }