1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Route new result callback via playfield

Follows route taken by osu! and catch (and required for proper pooling
support).
This commit is contained in:
Bartłomiej Dach 2020-12-20 18:07:59 +01:00
parent 370f56eadb
commit 62da4eff37

View File

@ -149,6 +149,12 @@ namespace osu.Game.Rulesets.Taiko.UI
};
}
protected override void LoadComplete()
{
base.LoadComplete();
NewResult += OnNewResult;
}
protected override void Update()
{
base.Update();
@ -208,7 +214,6 @@ namespace osu.Game.Rulesets.Taiko.UI
break;
case DrawableTaikoHitObject taikoObject:
h.OnNewResult += OnNewResult;
topLevelHitContainer.Add(taikoObject.CreateProxiedContent());
base.Add(h);
break;
@ -226,7 +231,6 @@ namespace osu.Game.Rulesets.Taiko.UI
return barLinePlayfield.Remove(barLine);
case DrawableTaikoHitObject _:
h.OnNewResult -= OnNewResult;
// todo: consider tidying of proxied content if required.
return base.Remove(h);