static int CallLuaTableMethod(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); string arg1 = ToLua.CheckString(L, 3); object[] arg2 = ToLua.ToParamsObject(L, 4, count - 3); obj.CallLuaTableMethod(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CallLuaTableMethod(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("Framework.LuaMgr.CallLuaTableMethod"); #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); string arg1 = ToLua.CheckString(L, 3); object[] arg2 = ToLua.ToParamsObject(L, 4, count - 3); obj.CallLuaTableMethod(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }