Tidy up code

This commit is contained in:
Dean Herbert 2021-06-04 15:18:16 +09:00
parent 996c156106
commit 19a44d65c5

View File

@ -26,11 +26,12 @@ namespace osu.Game.Graphics.Backgrounds
if (Beatmap.Storyboard.ReplacesBackground)
Sprite.Alpha = 0;
var audio = new AudioContainer { RelativeSizeAxes = Axes.Both };
audio.Volume.Value = 0;
AddInternal(audio);
LoadComponentAsync(new DrawableStoryboard(Beatmap.Storyboard) { Clock = new InterpolatingFramedClock(Beatmap.Track) }, audio.Add);
LoadComponentAsync(new AudioContainer
{
RelativeSizeAxes = Axes.Both,
Volume = { Value = 0 },
Child = new DrawableStoryboard(Beatmap.Storyboard) { Clock = new InterpolatingFramedClock(Beatmap.Track) }
}, AddInternal);
}
}
}