using UnityEngine; namespace LobbyRelaySample.UI { /// /// Watches for changes in the game state to/from the main menu. /// [RequireComponent(typeof(LocalMenuStateObserver))] public class MainMenuUI : ObserverPanel { public override void ObservedUpdated(LocalMenuState observed) { if (observed.State == GameState.Menu) Show(); else { Hide(); } } } }