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