Make Apply virtual to further simplify application process

This commit is contained in:
Dean Herbert
2020-07-10 18:35:20 +09:00
parent 8aff828dfe
commit f872343bab
3 changed files with 13 additions and 11 deletions

View File

@ -107,16 +107,7 @@ namespace osu.Game.Rulesets.Osu.UI
if (!judgedObject.DisplayResult || !DisplayJudgements.Value)
return;
var osuObject = (OsuHitObject)judgedObject.HitObject;
DrawableOsuJudgement explosion = poolDictionary[result.Type].Get(doj =>
{
doj.Apply(result, judgedObject);
// todo: move to JudgedObject property?
doj.Position = osuObject.StackedEndPosition;
doj.Scale = new Vector2(osuObject.Scale);
});
DrawableOsuJudgement explosion = poolDictionary[result.Type].Get(doj => doj.Apply(result, judgedObject));
judgementLayer.Add(explosion);
}