1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

Load Player-based TestCases asynchronously

This commit is contained in:
Dean Herbert 2017-11-29 13:10:13 +09:00
parent 36d1b8a021
commit d1afbf8055

View File

@ -78,7 +78,7 @@ namespace osu.Game.Tests.Visual
if (Player != null)
Remove(Player);
LoadScreen(CreatePlayer(working, instance));
LoadComponentAsync(CreatePlayer(working, instance), LoadScreen);
}
protected virtual Player CreatePlayer(WorkingBeatmap beatmap, Ruleset ruleset) => new Player