using TMPro;
using UnityEngine;
namespace LobbyRelaySample.UI
{
///
/// Displays the IP when connected to Relay.
///
public class RelayAddressUI : ObserverPanel
{
[SerializeField]
TMP_Text m_IPAddressText;
public override void ObservedUpdated(LocalLobby observed)
{
m_IPAddressText.SetText(observed.RelayServer?.ToString());
}
}
}