mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:22:54 +08:00
use recursion
This commit is contained in:
parent
db1dde72de
commit
e86ccf61b3
@ -71,13 +71,11 @@ namespace osu.Game.Overlays.Mods
|
|||||||
{
|
{
|
||||||
foregroundIcon.RotateTo(15f, mod_switch_duration, mod_switch_easing);
|
foregroundIcon.RotateTo(15f, mod_switch_duration, mod_switch_easing);
|
||||||
backgroundIcon.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(-15f);
|
||||||
foregroundIcon.RotateTo(0f, mod_switch_duration, mod_switch_easing);
|
foregroundIcon.RotateTo(0f, mod_switch_duration, mod_switch_easing);
|
||||||
}
|
|
||||||
using (backgroundIcon.BeginDelayedSequence(mod_switch_duration))
|
|
||||||
{
|
|
||||||
backgroundIcon.RotateTo(15f);
|
backgroundIcon.RotateTo(15f);
|
||||||
backgroundIcon.RotateTo(0f, mod_switch_duration, mod_switch_easing);
|
backgroundIcon.RotateTo(0f, mod_switch_duration, mod_switch_easing);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user