public void UpdateDisplay(NetTransport.ILobbyEntry data) { NetTransport.LobbyDisplayInfo info = default(NetTransport.LobbyDisplayInfo); if (data == null) { info.InitBlank(); } else { data.getDisplayInfo(out info); } UpdateDisplay(info); }
public void ClearDisplay() { prevDispInfo.InitBlank(); MaxPlayersText.text = string.Empty; JoinGameInProgressText.text = string.Empty; InviteText.text = string.Empty; LockLevelText.text = string.Empty; LaunchedText.text = string.Empty; LobbyNameText.text = string.Empty; if (LevelText != null) { LevelText.text = string.Empty; } if (LevelImage != null) { LevelImage.texture = null; LevelImage.enabled = false; } }