Limit shake duration to ensure it doesn't overlap miss window

This commit is contained in:
Dean Herbert
2018-07-06 17:24:30 +09:00
parent 98410dbb6d
commit 79af5cb0a0
4 changed files with 20 additions and 10 deletions

View File

@ -30,8 +30,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
Position = slider.CurvePositionAt(completionProgress);
}
public Action OnShake;
public Action<double> OnShake;
protected override void Shake() => OnShake?.Invoke();
protected override void Shake(double maximumLength) => OnShake?.Invoke(maximumLength);
}
}