protected void exitFormInternal(UIFormID ID) { Form win = getForm(ID); if (win != null) { // 清理列表 UILayer layer = win.uiLayer; layer.winDic.Remove(ID); // 释放界面资源 win.onExit(); UtilApi.Destroy(win.m_GUIWin.m_uiRoot); win.m_GUIWin.m_uiRoot = null; // 释放加载的资源 //string path = m_UIAttrs.getPath(ID); //if (path != null) //{ // Ctx.m_instance.m_resLoadMgr.unload(path); //} UtilApi.UnloadUnusedAssets(); // 异步卸载共用资源 m_id2FormDic.Remove(ID); win = null; } }