Fix osu!catch fruit rotation being applied too late

This commit is contained in:
Dean Herbert 2024-09-17 15:12:02 +09:00
parent d34e8ea69e
commit 785a725507
No known key found for this signature in database
1 changed files with 3 additions and 5 deletions

View File

@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Catch.Skinning.Default; using osu.Game.Rulesets.Catch.Skinning.Default;
using osu.Game.Skinning; using osu.Game.Skinning;
@ -28,11 +27,10 @@ private void load()
_ => new FruitPiece()); _ => new FruitPiece());
} }
protected override void UpdateInitialTransforms() protected override void OnApply()
{ {
base.UpdateInitialTransforms(); base.OnApply();
ScalingContainer.Rotation = (RandomSingle(1) - 0.5f) * 40;
ScalingContainer.RotateTo((RandomSingle(1) - 0.5f) * 40);
} }
} }
} }