Refactor RulesetContainer for readability

This commit is contained in:
Dean Herbert
2019-03-19 20:21:31 +09:00
parent 46720d7d26
commit 68f28326a2
6 changed files with 157 additions and 166 deletions

View File

@ -145,7 +145,7 @@ namespace osu.Game.Screens.Play
protected virtual void BindRulesetContainer(RulesetContainer rulesetContainer)
{
(rulesetContainer.KeyBindingInputManager as ICanAttachKeyCounter)?.Attach(KeyCounter);
(rulesetContainer as ICanAttachKeyCounter)?.Attach(KeyCounter);
replayLoaded.BindTo(rulesetContainer.HasReplayLoaded);