private static void UpdateLobbyControls(NetworkUser exceptUser = null)
{
var interactable =
SteamworksLobbyManager.isInLobby == SteamworksLobbyManager.ownsLobby &&
File.Exists(SaveFileMetadata.GetCurrentLobbySaveMetadata(exceptUser)?.FilePath);
try
{
if (lobbyButton)
{
var component = lobbyButton?.GetComponent <HGButton>();
if (component)
{
component.interactable = interactable;
}
}
}
catch { }
try
{
if (lobbyGlyphAndDescription)
{
var color = interactable ? Color.white : new Color(0.3F, 0.3F, 0.3F);
var glyphText = lobbyGlyphAndDescription.transform.GetChild(0).GetComponent <HGTextMeshProUGUI>();
glyphText.color = color;
var descriptionText = lobbyGlyphAndDescription.transform.GetChild(1).GetComponent <HGTextMeshProUGUI>();
descriptionText.color = color;
}
}
catch { }
}