mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +08:00
Use absolute sequence for flashlight breaks
This commit is contained in:
parent
d9ed68b189
commit
e25c7fdb9b
@ -95,6 +95,8 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
|
|
||||||
Combo.ValueChanged += OnComboChange;
|
Combo.ValueChanged += OnComboChange;
|
||||||
|
|
||||||
|
using (BeginAbsoluteSequence(0))
|
||||||
|
{
|
||||||
this.FadeInFromZero(FLASHLIGHT_FADE_DURATION);
|
this.FadeInFromZero(FLASHLIGHT_FADE_DURATION);
|
||||||
|
|
||||||
foreach (var breakPeriod in Breaks)
|
foreach (var breakPeriod in Breaks)
|
||||||
@ -105,6 +107,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
this.Delay(breakPeriod.EndTime - FLASHLIGHT_FADE_DURATION).FadeInFromZero(FLASHLIGHT_FADE_DURATION);
|
this.Delay(breakPeriod.EndTime - FLASHLIGHT_FADE_DURATION).FadeInFromZero(FLASHLIGHT_FADE_DURATION);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected abstract void OnComboChange(ValueChangedEvent<int> e);
|
protected abstract void OnComboChange(ValueChangedEvent<int> e);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user