mirror of
https://github.com/ppy/osu.git
synced 2025-03-23 10:47:21 +08:00
Improve readability for getTaikoActionFromInput
This commit is contained in:
parent
317869078f
commit
5ce57fa34a
@ -109,12 +109,12 @@ namespace osu.Game.Rulesets.Taiko.UI
|
||||
}
|
||||
|
||||
private TaikoAction getTaikoActionFromInput(Vector2 inputPosition) {
|
||||
bool leftSide = inputIsOnLeftSide(inputPosition);
|
||||
bool centreHit = inputIsCenterHit(inputPosition);
|
||||
bool leftSide = inputIsOnLeftSide(inputPosition);
|
||||
|
||||
return leftSide ?
|
||||
(centreHit ? TaikoAction.LeftCentre : TaikoAction.LeftRim) :
|
||||
(centreHit ? TaikoAction.RightCentre : TaikoAction.RightRim);
|
||||
return centreHit ?
|
||||
(leftSide ? TaikoAction.LeftCentre : TaikoAction.RightCentre) :
|
||||
(leftSide ? TaikoAction.LeftRim : TaikoAction.RightRim);
|
||||
}
|
||||
|
||||
private bool inputIsOnLeftSide(Vector2 inputPosition) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user