namespace LobbyRelaySample.UI
{
///
/// The panel that holds the lobby joining and creation panels.
///
public class JoinCreateLobbyUI : ObserverPanel
{
public override void ObservedUpdated(LocalGameState observed)
{
if (observed.State == GameState.JoinMenu)
{
Show();
Locator.Get.Messenger.OnReceiveMessage(MessageType.QueryLobbies, null);
}
else
{
Hide();
}
}
}
}