1
0
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:
Dean Herbert 2019-06-07 14:11:21 +09:00
parent 6f6b134ec8
commit 60b70c0f45

View File

@ -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));
}
}