public ParticleExchange StartLoadResource(string uri, float loadTime) { ParticleExchange particleExchange = gameObject.AddComponent <ParticleExchange> (); particleExchanges.Add(particleExchange); particleExchange.StartLoadResource(weatherTransform, uri, loadTime); return(particleExchange); }
static int StartLoadResource(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); ParticleExchange obj = (ParticleExchange)ToLua.CheckObject(L, 1, typeof(ParticleExchange)); UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform)); string arg1 = ToLua.CheckString(L, 3); float arg2 = (float)LuaDLL.luaL_checknumber(L, 4); obj.StartLoadResource(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }