1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 15:22:55 +08:00

Use transformation to set fruit rotation

This commit is contained in:
ekrctb 2020-12-03 12:13:14 +09:00
parent fdcfa81e46
commit 2e8195e059

View File

@ -5,6 +5,7 @@ using System;
using JetBrains.Annotations; using JetBrains.Annotations;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Bindables; using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Catch.Objects.Drawables.Pieces; using osu.Game.Rulesets.Catch.Objects.Drawables.Pieces;
using osu.Game.Skinning; using osu.Game.Skinning;
@ -42,7 +43,7 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawables
{ {
base.UpdateInitialTransforms(); base.UpdateInitialTransforms();
ScaleContainer.Rotation = (RandomSingle(1) - 0.5f) * 40; ScaleContainer.RotateTo((RandomSingle(1) - 0.5f) * 40);
} }
private void updatePiece() private void updatePiece()