private void MultiplayerServerHubViewController_serverHubException(ServerHubClient sender, Exception e) { _loading = false; TextMeshProUGUI _errorText = ui.CreateText(rectTransform, $"Can't connect to ServerHub @ {sender.ip}:{sender.port}", new Vector2(0f, -48f)); _errorText.alignment = TextAlignmentOptions.Center; Destroy(_errorText.gameObject, 4f); Console.WriteLine($"Can't connect to ServerHub @ {sender.ip}:{sender.port}. Exception: {e}"); _serverHubs.Remove(sender); }
private void MultiplayerServerHubViewController_receivedServerList(ServerHubClient sender, List <Data.Data> servers) { _loading = false; _multiplayerServerList.AddServers(servers); }