private void load(BindableBeatmap beatmap, OsuGame osu, AudioManager audio, Bindable <RulesetInfo> ruleset) { if (beatmap != null) { Beatmap.BindTo(beatmap); } if (ruleset != null) { Ruleset.BindTo(ruleset); } if (osu != null) { OverlayActivationMode.BindTo(osu.OverlayActivationMode); updateOverlayStates = () => { if (HideOverlaysOnEnter) { osu.CloseAllOverlays(); } else { osu.Toolbar.State = Visibility.Visible; } }; } sampleExit = audio.Sample.Get(@"UI/screen-back"); }