using TMPro;
using UnityEngine;
namespace LobbyRelaySample.UI
{
///
/// Displays the player's name.
///
public class PlayerNameUI : ObserverPanel
{
[SerializeField]
TMP_Text m_TextField;
public override void ObservedUpdated(LobbyUser observed)
{
m_TextField.SetText(observed.DisplayName);
}
}
}