Avoid creating an extra framed clock in SkipButton

This commit is contained in:
Dean Herbert
2018-02-27 16:01:30 +09:00
parent 73fb185132
commit 9c0dfb7c8c
2 changed files with 10 additions and 5 deletions

View File

@ -185,9 +185,12 @@ namespace osu.Game.Screens.Play
Clock = offsetClock,
Child = RulesetContainer,
},
new SkipButton(firstObjectTime) { AudioClock = decoupledClock },
hudOverlay = new HUDOverlay(scoreProcessor, RulesetContainer, decoupledClock, working, adjustableSourceClock)
new SkipButton(firstObjectTime)
{
SeekableClock = decoupledClock,
FramedClock = offsetClock,
},
Anchor = Anchor.Centre,
Origin = Anchor.Centre
},