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

@ -43,6 +43,17 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
}
}
public override void Apply(JudgementResult result, DrawableHitObject judgedObject)
{
base.Apply(result, judgedObject);
if (judgedObject?.HitObject is OsuHitObject osuObject)
{
Position = osuObject.StackedPosition;
Scale = new Vector2(osuObject.Scale);
}
}
protected override void PrepareForUse()
{
base.PrepareForUse();