#if ENABLE_GAME_FRAME_X_UI using GameFrameX.UI.Runtime; using GameFrameX.Runtime; public static partial class GameApp { /// /// 获取UI组件。 /// public static UIComponent UI { get { if (_ui == null) { _ui = GameEntry.GetComponent(); } return _ui; } } private static UIComponent _ui; } #endif