private void Update() { bool active = PlayerManager.instance.SecondPlayerStatus != PlayerManager.PlayerStatus.Online && !DLCMenu.InDLCMenu; splitScreenNotification.gameObject.SetActive(active); splitScreenNotification.SplitRefreshEnable(LevelSelectMenu2.InLevelSelectMenu || CustomizationPresetMenu.InCustomizationPresetMenu); splitScreenNotification.DLCAvailableEnable(MainMenu.InMainMenu && DLC.instance.SupportsDLC()); lobbySelectMenuOptions.gameObject.SetActive(MultiplayerSelectLobbyMenu.InLobbySelectMenu); multiplayerMenuOptions.gameObject.SetActive(multiplayerMenuOptions.ShouldShow); bool flag = false; MenuTransition activeMenu = MenuSystem.instance.activeMenu; if (activeMenu != null && !DialogOverlay.IsOnIncludingDelay() && App.state != AppSate.LoadLevel) { flag = true; if (activeMenu is MultiplayerErrorMenu || activeMenu is ConfirmMenu) { flag = false; } } if (SteamProgressOverlay.instance.DialogShowing()) { flag = false; } if (LegendBar.activeSelf != flag) { LegendBar.SetActive(flag); } }