Always play 'swoosh' sample when transitioning back to logo

This commit is contained in:
Jamie Taylor 2023-11-09 14:01:33 +09:00
parent f69c2ea39b
commit 8a47f05b16
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C

View File

@ -267,7 +267,6 @@ namespace osu.Game.Screens.Menu
// Samples are explicitly played here in response to user interaction and not when transitioning due to idle.
StopSamplePlayback();
sampleBackToLogo?.Play();
sampleLogoSwoosh?.Play();
return true;
@ -362,6 +361,9 @@ namespace osu.Game.Screens.Menu
logo?.MoveTo(new Vector2(0.5f), 800, Easing.OutExpo);
logo?.ScaleTo(1, 800, Easing.OutExpo);
}, buttonArea.Alpha * 150);
if (lastState == ButtonSystemState.TopLevel)
sampleLogoSwoosh?.Play();
break;
case ButtonSystemState.TopLevel: