mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
refactor(ui): 使用集合表达式初始化列表
- 将 List<IUiTransitionHandler> 的初始化从 new() 改为 [] - 简化了代码语法,提高可读性
This commit is contained in:
parent
c931cb7d66
commit
3ec1c6748b
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user