static int CallLuaModuleMethod(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); Framework.LuaMgr obj = (Framework.LuaMgr)ToLua.CheckObject <Framework.LuaMgr>(L, 1); string arg0 = ToLua.CheckString(L, 2); object[] arg1 = ToLua.ToParamsObject(L, 3, count - 2); obj.CallLuaModuleMethod(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CallLuaModuleMethod(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("Framework.LuaMgr.CallLuaModuleMethod"); #endif try { int count = LuaDLL.lua_gettop(L); Framework.LuaMgr obj = (Framework.LuaMgr)ToLua.CheckObject <Framework.LuaMgr>(L, 1); string arg0 = ToLua.CheckString(L, 2); object[] arg1 = ToLua.ToParamsObject(L, 3, count - 2); obj.CallLuaModuleMethod(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }