1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 07:23:14 +08:00

Extract scale constant

This commit is contained in:
Dean Herbert 2021-04-26 15:30:22 +09:00
parent 8795c5f082
commit d10aac851d

View File

@ -112,8 +112,10 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
case ArmedState.Hit:
this.FadeOut(animDuration, Easing.Out);
Arrow.ScaleTo(Scale * 1.5f, animDuration, Easing.Out);
CirclePiece.ScaleTo(Scale * 1.5f, animDuration, Easing.Out);
const float final_scale = 1.5f;
Arrow.ScaleTo(Scale * final_scale, animDuration, Easing.Out);
CirclePiece.ScaleTo(Scale * final_scale, animDuration, Easing.Out);
break;
}
}