Apply suggestions from code review

Co-Authored-By: smoogipoo <1329837+smoogipoo@users.noreply.github.com>
This commit is contained in:
Dean Herbert
2019-02-22 17:06:49 +09:00
committed by GitHub
parent 8f53af1c71
commit 452caabd40
12 changed files with 20 additions and 20 deletions

View File

@ -51,7 +51,7 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables.Pieces
direction.BindTo(scrollingInfo.Direction);
direction.BindValueChanged(e =>
{
colouredBox.Anchor = colouredBox.Origin = direction.Value == ScrollingDirection.Up ? Anchor.TopCentre : Anchor.BottomCentre;
colouredBox.Anchor = colouredBox.Origin = e.NewValue == ScrollingDirection.Up ? Anchor.TopCentre : Anchor.BottomCentre;
}, true);
}