mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:28:00 +08:00
Move activity setup to BDL.
This commit is contained in:
parent
790a2ca97d
commit
55070556a7
@ -137,6 +137,9 @@ namespace osu.Game.Screens
|
||||
private void load(OsuGame osu, AudioManager audio)
|
||||
{
|
||||
sampleExit = audio.Samples.Get(@"UI/screen-back");
|
||||
|
||||
if (Activity.Value == null)
|
||||
Activity.Value = InitialActivity;
|
||||
}
|
||||
|
||||
public override void OnResuming(IScreen last)
|
||||
@ -161,9 +164,6 @@ namespace osu.Game.Screens
|
||||
|
||||
backgroundStack?.Push(localBackground = CreateBackground());
|
||||
|
||||
if (Activity.Value == null)
|
||||
Activity.Value = InitialActivity;
|
||||
|
||||
base.OnEntering(last);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user