public static int Apply(IntPtr l) { int result; try { LocalConfig localConfig = (LocalConfig)LuaObject.checkSelf(l); bool isInitialize; LuaObject.checkType(l, 2, out isInitialize); localConfig.Apply(isInitialize); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }