AlicizaX/Client/Packages/com.alicizax.unity.entry/Runtime/GameApp.UI.cs

24 lines
402 B
C#
Raw Normal View History

using AlicizaX;
2025-03-04 18:40:14 +08:00
using AlicizaX.UI.Runtime;
2025-01-23 19:06:48 +08:00
public static partial class GameApp
{
/// <summary>
/// 获取UI组件。
/// </summary>
2025-04-28 19:45:45 +08:00
public static IUIModule UI
2025-01-23 19:06:48 +08:00
{
get
{
if (_ui == null)
{
2025-04-28 19:45:45 +08:00
_ui = ModuleSystem.GetModule<IUIModule>();
2025-01-23 19:06:48 +08:00
}
return _ui;
}
}
2025-04-28 19:45:45 +08:00
internal static IUIModule _ui;
2025-01-23 19:06:48 +08:00
}