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