static int LuaOpen_UnityEngine_MeshRenderer(IntPtr L) { try { LuaState state = LuaState.Get(L); state.BeginPreModule("UnityEngine"); UnityEngine_MeshRendererWrap.Register(state); int reference = state.GetMetaReference(typeof(UnityEngine.MeshRenderer)); state.EndPreModule(L, reference); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int LuaOpen_UnityEngine_Rigidbody(IntPtr L) { try { int top = LuaDLL.lua_gettop(L); LuaState state = LuaState.Get(L); int preTop = state.BeginPreModule("UnityEngine"); UnityEngine_RigidbodyWrap.Register(state); state.EndPreModule(preTop); LuaDLL.lua_settop(L, top); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private static int LuaOpen_UnityEngine_Rigidbody(IntPtr L) { int result; try { int top = LuaDLL.lua_gettop(L); LuaState luaState = LuaState.Get(L); int top2 = luaState.BeginPreModule("UnityEngine"); UnityEngine_RigidbodyWrap.Register(luaState); luaState.EndPreModule(top2); LuaDLL.lua_settop(L, top); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }