int __CreateInstanceUnityEngineWaitForFixedUpdate(RealStatePtr L, int gen_param_count) { ObjectTranslator translator = this; if (gen_param_count == 1) { UnityEngine.WaitForFixedUpdate gen_ret = new UnityEngine.WaitForFixedUpdate(); translator.Push(L, gen_ret); return(1); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WaitForFixedUpdate constructor!")); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { UnityEngine.WaitForFixedUpdate gen_ret = new UnityEngine.WaitForFixedUpdate(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.WaitForFixedUpdate constructor!")); }
/// <summary> /// Continuously monitor our scheduled downloads. /// </summary> public IEnumerator monitorDownloads() { waiter = new UnityEngine.WaitForFixedUpdate (); while (true) { while (workQueue.Count > 0) { // Removal from the work queue is the responsibility of download function. yield return util.InitiateCoroutine (download (workQueue[0])); } yield return waiter; } }