public bool isNetworkActive ;

描述

如果 NetworkServer 或 NetworkClient 处于活动状态,则为 true。

此属性为只读。调用 StopServer() 或 StopClient() 可将其关闭。