using TMPro; namespace LobbyRelaySample.UI { /// /// Read Only input field (for copy/paste reasons) Watches for the changes in the lobby's Room Code /// public class RoomCodeUI : ObserverPanel { public TMP_InputField roomCodeText; public override void ObservedUpdated(LobbyData observed) { if (!string.IsNullOrEmpty(observed.RoomCode)) { roomCodeText.text = observed.RoomCode; Show(); } else { Hide(); } } } }