1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:43:05 +08:00

Inline animation method

This commit is contained in:
Dean Herbert 2022-06-17 17:06:06 +09:00
parent e51babdb96
commit 1900480d51

View File

@ -155,7 +155,7 @@ namespace osu.Game.Screens.Menu
t.Origin = Anchor.Centre;
t.Colour = colours.Pink;
Schedule(animateHeart);
Schedule(() => heart?.FlashColour(Color4.White, 750, Easing.OutQuint).Loop());
});
if (supportFlow.IsPresent)
@ -251,10 +251,5 @@ namespace osu.Game.Screens.Menu
return tips[RNG.Next(0, tips.Length)];
}
private void animateHeart()
{
heart?.FlashColour(Color4.White, 750, Easing.OutQuint).Loop();
}
}
}