Example #1
0
 /// <summary>
 /// When server stops completely.
 /// </summary>
 /// <param name="server"></param>
 private void ServerStopped(NetworkServer server)
 {
     _isActive = false;
     OnServerStopped?.Invoke(server);
 }
Example #2
0
 /// <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);
 }