Add a new test for OsuScreenStack, fix parallax

This commit is contained in:
David Zhao
2019-03-22 14:10:38 +09:00
parent ee0d7b6c6d
commit dcae86e39a
5 changed files with 59 additions and 13 deletions

View File

@ -73,15 +73,11 @@ namespace osu.Game.Tests.Visual
Player?.Exit();
Player = null;
var player = CreatePlayer(r);
Player = CreatePlayer(r);
LoadComponentAsync(player, p =>
{
Player = p;
LoadScreen(p);
});
LoadScreen(Player);
return player;
return Player;
}
protected virtual Player CreatePlayer(Ruleset ruleset) => new Player