/// <summary> /// Called when a remote player disconnects from the server. /// </summary> void ServerNetworkManager_OnPlayerDisconnected(object sender, NetworkManager.PlayerDisconnectedEventArgs e) { // Get player from list. var player = Player.GetPlayerFromId(e.uniqueID); // Remove player from list. Player.RemovePlayer(player); // Log disconnect. Console.WriteLine("Player Disconnected:\tName:{0} \tId:{1}", player.Name, player.UniqueID); }