/// <summary> /// 销毁当前正打开的面板 /// </summary> public void CloseCurrPages() { if (currShowXPage != null) { currShowXPage.Destroy(); m_pageDic.Remove(currShowXPage.m_pageName); } else { Debug.LogError("currShowPage is null"); } }
static int Destroy(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); XPage obj = (XPage)ToLua.CheckObject(L, 1, typeof(XPage)); obj.Destroy(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }