/// <summary>
        /// 重载Lua界面
        /// </summary>
        public void ReloadLuaForm()
        {
            foreach (KeyValuePair <int, string> luaFormInfo in m_LuaForms)
            {
                IDataTable <DRUIForm> dt  = GameEntry.DataTable.GetDataTable <DRUIForm>();
                string          formGroup = dt.GetDataRow(luaFormInfo.Key).UIGroupName;
                FairyGuiLuaForm luaForm   = GameEntry.UI.GetUIForm(luaFormInfo.Key, formGroup) as FairyGuiLuaForm;
                if (luaForm == null)
                {
                    string errorMessage = string.Format("LuaForm not Exit, Please register first.ID:{1}",
                                                        luaFormInfo.Key);
                    Log.Error(errorMessage);
                    return;
                }

                luaForm.Reload();
            }
        }
        public void Clear()
        {
            foreach (KeyValuePair <int, string> luaFormInfo in m_LuaForms)
            {
                IDataTable <DRUIForm> dt  = GameEntry.DataTable.GetDataTable <DRUIForm>();
                string          formGroup = dt.GetDataRow(luaFormInfo.Key).UIGroupName;
                FairyGuiLuaForm luaForm   = GameEntry.UI.GetUIForm(luaFormInfo.Key, formGroup) as FairyGuiLuaForm;
                if (luaForm != null)
                {
                    luaForm.Clear();
                    GameEntry.UI.CloseUIForm(luaForm);
                }
            }

            BoardFormManager.Instance.Clear();

            m_LuaForms.Clear();
            m_UIPackages.Clear();
            UIPackage.RemoveAllPackages();
        }