Split local variable assignment from construction of children

This commit is contained in:
Dan Balasescu 2018-04-04 15:13:42 +09:00 committed by GitHub
parent 9df525a38d
commit bed46b1f7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,7 @@ namespace osu.Game.Rulesets.Judgements
private void load(OsuColour colours)
{
this.colours = colours;
Child = new SkinnableDrawable($"Play/{Judgement.Result}", _ => JudgementText = new OsuSpriteText
{
Text = Judgement.Result.GetDescription().ToUpper(),