mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 14:12:56 +08:00
remove unnecessary variable
This commit is contained in:
parent
66176f2882
commit
b726f90c37
@ -16,7 +16,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
private readonly RepeatPoint repeatPoint;
|
||||
private readonly DrawableSlider drawableSlider;
|
||||
|
||||
public double FadeInTime;
|
||||
private double animDuration;
|
||||
|
||||
public DrawableRepeatPoint(RepeatPoint repeatPoint, DrawableSlider drawableSlider)
|
||||
@ -48,7 +47,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
|
||||
protected override void UpdatePreemptState()
|
||||
{
|
||||
animDuration = Math.Min(150, repeatPoint.StartTime - FadeInTime);
|
||||
animDuration = Math.Min(150, repeatPoint.RepeatDuration / 2);
|
||||
|
||||
this.FadeIn(animDuration).ScaleTo(1.2f, animDuration / 2)
|
||||
.Then()
|
||||
|
@ -93,7 +93,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
{
|
||||
var drawableRepeatPoint = new DrawableRepeatPoint(repeatPoint, this)
|
||||
{
|
||||
FadeInTime = repeatPoint.StartTime - s.RepeatDuration / 2,
|
||||
Position = repeatPoint.Position
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user