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