1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 11:27:24 +08:00

Rename rotation set method to match others

This commit is contained in:
Dean Herbert 2020-07-21 11:21:58 +09:00
parent f48984920d
commit 4dd40542d5
2 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
Ticks.Rotation = Disc.Rotation; Ticks.Rotation = Disc.Rotation;
SpmCounter.SetRotation(Disc.CumulativeRotation); SpmCounter.SetRotation(Disc.CumulativeRotation);
bonusComponent.UpdateRotation(Disc.CumulativeRotation); bonusComponent.SetRotation(Disc.CumulativeRotation);
float relativeCircleScale = Spinner.Scale * circle.DrawHeight / mainContainer.DrawHeight; float relativeCircleScale = Spinner.Scale * circle.DrawHeight / mainContainer.DrawHeight;
float targetScale = relativeCircleScale + (1 - relativeCircleScale) * Progress; float targetScale = relativeCircleScale + (1 - relativeCircleScale) * Progress;

View File

@ -40,7 +40,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
private int currentSpins; private int currentSpins;
public void UpdateRotation(double rotation) public void SetRotation(double rotation)
{ {
if (ticks.Count == 0) if (ticks.Count == 0)
return; return;