using UnityEngine; namespace LobbyRelaySample.UI { public class LobbyStateVisibilityUI : ObserverPanel { [SerializeField] private LobbyState m_ShowThisWhen; public override void ObservedUpdated(LobbyData observed) { if (m_ShowThisWhen.HasFlag(observed.State)) Show(); else Hide(); } } }