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