refactor(ui): 使用集合表达式初始化列表

- 将 List<IUiTransitionHandler> 的初始化从 new() 改为 []
- 简化了代码语法,提高可读性
This commit is contained in:
GeWuYou 2026-01-15 12:38:57 +08:00
parent c931cb7d66
commit 3ec1c6748b

View File

@ -11,7 +11,7 @@ namespace GFramework.Game.ui;
public class UiTransitionPipeline
{
private static readonly ILogger Log = LoggerFactoryResolver.Provider.CreateLogger("UiTransitionPipeline");
private readonly List<IUiTransitionHandler> _handlers = new();
private readonly List<IUiTransitionHandler> _handlers = [];
private readonly Dictionary<IUiTransitionHandler, UiTransitionHandlerOptions> _options = new();
/// <summary>