Fix judgements being constructed too late.

This commit is contained in:
Dean Herbert 2017-04-05 19:59:13 +09:00
parent 5f79df3697
commit 8354fb5eb5
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -56,13 +56,17 @@ namespace osu.Game.Modes.Objects.Drawables
Sample?.Play();
}
protected override void LoadComplete()
[BackgroundDependencyLoader]
private void load()
{
base.LoadComplete();
//we may be setting a custom judgement in test cases or what not.
if (Judgement == null)
Judgement = CreateJudgement();
}
protected override void LoadComplete()
{
base.LoadComplete();
//force application of the state that was set before we loaded.
UpdateState(State);