mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:52:57 +08:00
Fix attempting to add key counter controller to hierarchy in multiple places
This commit is contained in:
parent
cc45ec4fff
commit
dbd76c1193
@ -111,12 +111,14 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
|
||||
// intentionally not added to hierarchy here as it will be attached via `BindDrawableRuleset()`.
|
||||
KeyCounter = new KeyCounterController();
|
||||
|
||||
Children = new[]
|
||||
{
|
||||
CreateFailingLayer(),
|
||||
//Needs to be initialized before skinnable drawables.
|
||||
tally = new JudgementTally(),
|
||||
KeyCounter = new KeyCounterController(),
|
||||
mainComponents = new HUDComponentsContainer { AlwaysPresent = true, },
|
||||
rulesetComponents = drawableRuleset != null
|
||||
? new HUDComponentsContainer(drawableRuleset.Ruleset.RulesetInfo) { AlwaysPresent = true, }
|
||||
|
Loading…
Reference in New Issue
Block a user