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