static int Play(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); TypeWriter obj = (TypeWriter)ToLua.CheckObject(L, 1, typeof(TypeWriter)); obj.Play(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }