1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Fix DrawableHitObject not binding nested hitobject events

This commit is contained in:
smoogipoo 2018-01-15 20:35:38 +09:00
parent 96242234c0
commit 0ae0dac192

View File

@ -167,6 +167,11 @@ namespace osu.Game.Rulesets.Objects.Drawables
{
if (nestedHitObjects == null)
nestedHitObjects = new List<DrawableHitObject>();
h.OnJudgement += (d, j) => OnJudgement?.Invoke(d, j);
h.OnJudgementRemoved += (d, j) => OnJudgementRemoved?.Invoke(d, j);
h.ApplyCustomUpdateState += (d, j) => ApplyCustomUpdateState?.Invoke(d, j);
nestedHitObjects.Add(h);
}