com.alicizax.unity.entry/Runtime/GameApp.Network.cs
2025-03-19 13:02:11 +08:00

25 lines
465 B
C#

using AlicizaX.Network.Runtime;
using AlicizaX.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;
}