Simplify implementation

This commit is contained in:
Dean Herbert
2022-07-22 16:18:22 +09:00
parent 7015cf0b1b
commit b604eb6262
5 changed files with 75 additions and 103 deletions

View File

@ -39,8 +39,6 @@ namespace osu.Game.Rulesets.Taiko.UI
private SkinnableDrawable scroller;
private DrumTouchInputArea drumTouchInputArea;
public DrawableTaikoRuleset(Ruleset ruleset, IBeatmap beatmap, IReadOnlyList<Mod> mods = null)
: base(ruleset, beatmap, mods)
{
@ -59,8 +57,7 @@ namespace osu.Game.Rulesets.Taiko.UI
Depth = float.MaxValue
});
if ((drumTouchInputArea = CreateDrumTouchInputArea()) != null)
KeyBindingInputManager.Add(drumTouchInputArea);
KeyBindingInputManager.Add(new DrumTouchInputArea());
}
protected override void UpdateAfterChildren()
@ -79,8 +76,6 @@ namespace osu.Game.Rulesets.Taiko.UI
return ControlPoints[result];
}
public DrumTouchInputArea CreateDrumTouchInputArea() => new DrumTouchInputArea();
public override PlayfieldAdjustmentContainer CreatePlayfieldAdjustmentContainer() => new TaikoPlayfieldAdjustmentContainer
{
LockPlayfieldAspect = { BindTarget = LockPlayfieldAspect }