Merge pull request #1913 from smoogipoo/fix-event-bindings

Fix DrawableHitObject not binding nested hitobject events
This commit is contained in:
Dean Herbert 2018-01-16 18:05:22 +09:00 committed by GitHub
commit ae10aa4042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -167,6 +167,11 @@ protected virtual void AddNested(DrawableHitObject h)
{
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);
}