com.alicizax.unity.entry/Runtime/GameApp.Network.cs

25 lines
506 B
C#
Raw Normal View History

2025-02-07 16:09:00 +08:00
#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