yyl
2025-05-20 9ff4940cfe2074ca24aca15c25b5053bd658dfa8
修复上一条转换List<T><-List<UIBase>的问题
1个文件已修改
15 ■■■■■ 已修改文件
Main/UI/UIManager.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/UI/UIManager.cs
@@ -256,7 +256,20 @@
        }
        // 尝试从字典中获取UI实例列表
        uiDict.TryGetValue(uiName, out uiList);
        List<UIBase> tempList = null;
        uiDict.TryGetValue(uiName, out tempList);
        if (tempList != null)
        {
            for (int i = 0; i < tempList.Count; i++)
            {
                UIBase ui = tempList[i];
                if (null != ui)
                {
                    uiList.Add(ui as T);
                }
            }
        }
        return uiList;
    }