com.alicizax.unity.entry/Runtime/GameApp.Network.cs
陈思海 0ee146b515 init
2025-02-07 16:09:00 +08:00

25 lines
506 B
C#

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