public static void SetParkingRestrictionsEnabled(bool newValue) { Options.parkingRestrictionsEnabled = newValue; Options.RebuildMenu(); if (_enableParkingRestrictionsToggle != null) { _enableParkingRestrictionsToggle.isChecked = newValue; } if (!newValue) { OptionsOverlaysTab.SetParkingRestrictionsOverlay(false); } }
private static void OnParkingRestrictionsEnabledChanged(bool val) { if (!Options.IsGameLoaded()) { return; } Options.parkingRestrictionsEnabled = val; Options.RebuildMenu(); if (!val) { OptionsOverlaysTab.SetParkingRestrictionsOverlay(false); } }