mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 16:02:55 +08:00
Use transformation to set fruit rotation
This commit is contained in:
parent
fdcfa81e46
commit
2e8195e059
@ -5,6 +5,7 @@ using System;
|
||||
using JetBrains.Annotations;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Rulesets.Catch.Objects.Drawables.Pieces;
|
||||
using osu.Game.Skinning;
|
||||
|
||||
@ -42,7 +43,7 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawables
|
||||
{
|
||||
base.UpdateInitialTransforms();
|
||||
|
||||
ScaleContainer.Rotation = (RandomSingle(1) - 0.5f) * 40;
|
||||
ScaleContainer.RotateTo((RandomSingle(1) - 0.5f) * 40);
|
||||
}
|
||||
|
||||
private void updatePiece()
|
||||
|
Loading…
Reference in New Issue
Block a user