jiangxufeng 3 жил өмнө
parent
commit
56837151a2

+ 4 - 0
LuaDemo/Assets/BundleResource/LuaScripts/Base/CoroutineHelper.lua.txt

@@ -44,6 +44,10 @@ function CoroutineHelper:WaitForEndOfFrame()
     coroutine.yield(CS.UnityEngine.WaitForEndOfFrame())
 end
 
+function CoroutineHelper:WaitSendWebRequest(luaRequest)
+    coroutine.yield(luaRequest:SendWebRequest())
+end
+
 function CoroutineHelper:Test()
     local targetCoroutine = CoroutineHelper.Start(
         function()