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