1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-26 18:42:56 +08:00

Move activity setup to BDL.

This commit is contained in:
Lucas A 2020-11-08 12:53:19 +01:00
parent 790a2ca97d
commit 55070556a7

View File

@ -137,6 +137,9 @@ namespace osu.Game.Screens
private void load(OsuGame osu, AudioManager audio) private void load(OsuGame osu, AudioManager audio)
{ {
sampleExit = audio.Samples.Get(@"UI/screen-back"); sampleExit = audio.Samples.Get(@"UI/screen-back");
if (Activity.Value == null)
Activity.Value = InitialActivity;
} }
public override void OnResuming(IScreen last) public override void OnResuming(IScreen last)
@ -161,9 +164,6 @@ namespace osu.Game.Screens
backgroundStack?.Push(localBackground = CreateBackground()); backgroundStack?.Push(localBackground = CreateBackground());
if (Activity.Value == null)
Activity.Value = InitialActivity;
base.OnEntering(last); base.OnEntering(last);
} }