/// <summary> /// When server stops completely. /// </summary> /// <param name="server"></param> private void ServerStopped(NetworkServer server) { _isActive = false; OnServerStopped?.Invoke(server); }
/// <summary> /// When server gets started and begins listening for new connections. /// </summary> /// <param name="server">The NetworkServer that started.</param> private void ServerStarted(NetworkServer server) { _isActive = true; OnServerStarted?.Invoke(server); }