void SetOverlaysVisibleImpl(bool state) { string screenName = FixActiveScreenName(ActiveScreenName); foreach (var overlayPair in m_Overlays) { GuiOverlay overlay = overlayPair.Value; if (overlay == null) { continue; } if (state == true) { overlay.ShowView(this); overlay.EnableView(); overlay.SetActiveScreen(screenName); } else { overlay.SetActiveScreen(null); overlay.DisableView(); overlay.HideView(this); } } }
void SetOverlaysEnabledImpl(bool state) { string screenName = FixActiveScreenName(ActiveScreenName); foreach (var overlayPair in m_Overlays) { GuiOverlay overlay = overlayPair.Value; if (overlay == null) { continue; } if (state == true && m_OverlaysCustomEnabled == true) { overlay.EnableView(); } else { overlay.DisableView(); } overlay.SetActiveScreen(screenName); } }