static int Update(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); MonoSingleton <SysInfoLayer> obj = (MonoSingleton <SysInfoLayer>)ToLua.CheckObject(L, 1, typeof(MonoSingleton <SysInfoLayer>)); obj.Update(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }