mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Add fallback logic in case a ruleset consumer forgets to add the HitObjectContainer
This commit is contained in:
@ -93,6 +93,15 @@ namespace osu.Game.Rulesets.UI
|
|||||||
nestedPlayfields.Value.Add(otherPlayfield);
|
nestedPlayfields.Value.Add(otherPlayfield);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
|
||||||
|
// in the case a consumer forgets to add the HitObjectContainer, we will add it here.
|
||||||
|
if (HitObjectContainer.Parent == null)
|
||||||
|
AddInternal(HitObjectContainer);
|
||||||
|
}
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
Reference in New Issue
Block a user