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.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Catch.Skinning.Default;
using osu.Game.Skinning;
@ -28,11 +27,10 @@ private void load()
_ => new FruitPiece());
}
protected override void UpdateInitialTransforms()
protected override void OnApply()
{
base.UpdateInitialTransforms();
ScalingContainer.RotateTo((RandomSingle(1) - 0.5f) * 40);
base.OnApply();
ScalingContainer.Rotation = (RandomSingle(1) - 0.5f) * 40;
}
}
}