24 lines
415 B
C#
24 lines
415 B
C#
![]() |
using AlicizaX.Runtime;
|
|||
|
using AlicizaX.UI.Runtime;
|
|||
|
|
|||
|
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;
|
|||
|
}
|