static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Game.MessageManager obj = (Game.MessageManager)ToLua.CheckObject <Game.MessageManager>(L, 1); obj.Init(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }