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

Fix hit transforms not playing out correctly

This commit is contained in:
Dean Herbert 2020-07-30 11:25:49 +09:00
parent ca21f038e0
commit 64c7ae7686

View File

@ -87,16 +87,16 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
{
base.LoadComplete();
centre.ScaleTo(0);
mainContainer.ScaleTo(0);
this.ScaleTo(1);
drawableSpinner.RotationTracker.Complete.BindValueChanged(complete => updateComplete(complete.NewValue, 200));
drawableSpinner.State.BindValueChanged(updateStateTransforms, true);
}
private void updateStateTransforms(ValueChangedEvent<ArmedState> state)
{
centre.ScaleTo(0);
mainContainer.ScaleTo(0);
this.ScaleTo(1);
using (BeginAbsoluteSequence(spinner.StartTime - spinner.TimePreempt / 2, true))
{
float phaseOneScale = spinner.Scale * 0.7f;