mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Make Apply virtual to further simplify application process
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user