mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Use lambda for simple functions
This commit is contained in:
parent
6f6b134ec8
commit
60b70c0f45
@ -75,14 +75,8 @@ namespace osu.Game.Graphics.Containers
|
||||
EffectTargets.ForEach(d => d.FadeColour(IdleColour));
|
||||
}
|
||||
|
||||
private void fadeIn()
|
||||
{
|
||||
EffectTargets.ForEach(d => d.FadeColour(HoverColour, FADE_DURATION, Easing.OutQuint));
|
||||
}
|
||||
private void fadeIn() => EffectTargets.ForEach(d => d.FadeColour(HoverColour, FADE_DURATION, Easing.OutQuint));
|
||||
|
||||
private void fadeOut()
|
||||
{
|
||||
EffectTargets.ForEach(d => d.FadeColour(IdleColour, FADE_DURATION, Easing.OutQuint));
|
||||
}
|
||||
private void fadeOut() => EffectTargets.ForEach(d => d.FadeColour(IdleColour, FADE_DURATION, Easing.OutQuint));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user