static int QPYX_Abort_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 1);
         UnityEngine.Networking.UnityWebRequest QPYX_obj_YXQP = (UnityEngine.Networking.UnityWebRequest)ToLua.CheckObject <UnityEngine.Networking.UnityWebRequest>(L_YXQP, 1);
         QPYX_obj_YXQP.Abort();
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
 static int Abort(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.Networking.UnityWebRequest obj = (UnityEngine.Networking.UnityWebRequest)ToLua.CheckObject <UnityEngine.Networking.UnityWebRequest>(L, 1);
         obj.Abort();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 3
0
 IEnumerator EsperarUWRVersionRuntime(UnityEngine.Networking.UnityWebRequest uwr, System.Action alTerminar)
 {
     uwr.SendWebRequest();
     while (!uwr.isDone)
     {
         progresoDescarga = uwr.downloadProgress;
         if (!descargando)
         {//descarga cancelada por otro lado
             uwr.Abort();
             break;
         }
         yield return(null);
     }
     progresoDescarga = uwr.downloadProgress;
     alTerminar.Invoke();
 }
Exemplo n.º 4
0
 void EsperarUWRVersionEditor(UnityEngine.Networking.UnityWebRequest uwr, System.Action alTerminar)
 {
     EditorApplication.CallbackFunction esperarQueTermine = null;
     esperarQueTermine = () =>
     {
         progresoDescarga = uwr.downloadProgress;
         if (uwr.isDone)
         {
             EditorApplication.update -= esperarQueTermine;
             alTerminar.Invoke();
         }
         else
         {
             if (!descargando)
             {//descarga cancelada por otro lado
                 uwr.Abort();
                 EditorApplication.update -= esperarQueTermine;
                 alTerminar.Invoke();
             }
         }
     };
     EditorApplication.update += esperarQueTermine;
     uwr.SendWebRequest();
 }