#if ENABLE_GAME_FRAME_X_NETWORK using GameFrameX.Network.Runtime; using GameFrameX.Runtime; public static partial class GameApp { /// /// 获取网络组件。 /// public static NetworkComponent Network { get { if (_network == null) { _network = GameEntry.GetComponent(); } return _network; } } private static NetworkComponent _network; } #endif