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:
parent
e51babdb96
commit
1900480d51
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user