public static int Init(IntPtr l) { int result; try { ResourceComponent resourceComponent = (ResourceComponent)LuaObject.checkSelf(l); resourceComponent.Init(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }