Remove base OnJudgement from Playfield to properly accomodate nested playfields

This commit is contained in:
smoogipoo
2018-01-15 20:45:30 +09:00
parent c32ff9c43b
commit 8c5ef0a330
8 changed files with 22 additions and 28 deletions

View File

@ -262,12 +262,7 @@ namespace osu.Game.Rulesets.UI
if (drawableObject == null)
continue;
drawableObject.OnJudgement += (d, j) =>
{
Playfield.OnJudgement(d, j);
OnJudgement?.Invoke(j);
};
drawableObject.OnJudgement += (d, j) => OnJudgement?.Invoke(j);
drawableObject.OnJudgementRemoved += (d, j) => OnJudgementRemoved?.Invoke(j);
Playfield.Add(drawableObject);