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