1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Apply suggestions

This commit is contained in:
Andrei Zavatski 2020-03-12 12:04:36 +03:00
parent 90259e1f69
commit bc2a1cdb62

View File

@ -344,11 +344,8 @@ namespace osu.Game.Rulesets.Catch.UI
if (validCatch)
updateState(fruit.Kiai ? CatcherAnimationState.Kiai : CatcherAnimationState.Idle);
else
{
if (!(fruit is Banana))
updateState(CatcherAnimationState.Fail);
}
else if (!(fruit is Banana))
updateState(CatcherAnimationState.Fail);
return validCatch;
}
@ -362,7 +359,7 @@ namespace osu.Game.Rulesets.Catch.UI
updateCatcher();
}
public CatcherAnimationState CurrentState;
public CatcherAnimationState CurrentState { get; private set; }
private double hyperDashModifier = 1;
private int hyperDashDirection;