1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 00:02:54 +08:00

use recursion

This commit is contained in:
Jorolf 2017-05-27 09:52:02 +02:00
parent db1dde72de
commit e86ccf61b3

View File

@ -71,13 +71,11 @@ namespace osu.Game.Overlays.Mods
{
foregroundIcon.RotateTo(15f, mod_switch_duration, mod_switch_easing);
backgroundIcon.RotateTo(-15f, mod_switch_duration, mod_switch_easing);
using (foregroundIcon.BeginDelayedSequence(mod_switch_duration))
using (iconsContainer.BeginDelayedSequence(mod_switch_duration, true))
{
foregroundIcon.RotateTo(-15f);
foregroundIcon.RotateTo(0f, mod_switch_duration, mod_switch_easing);
}
using (backgroundIcon.BeginDelayedSequence(mod_switch_duration))
{
backgroundIcon.RotateTo(15f);
backgroundIcon.RotateTo(0f, mod_switch_duration, mod_switch_easing);
}