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