mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 08:33:55 +09:00
Invert if & early-return to reduce nesting
This commit is contained in:
@ -107,12 +107,12 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer.Match
|
|||||||
|
|
||||||
private void playSound()
|
private void playSound()
|
||||||
{
|
{
|
||||||
if (sampleReadyCount != null)
|
if (sampleReadyCount == null)
|
||||||
{
|
return;
|
||||||
|
|
||||||
sampleReadyCount.Frequency.Value = 0.77f + countReady * 0.06f;
|
sampleReadyCount.Frequency.Value = 0.77f + countReady * 0.06f;
|
||||||
sampleReadyCount.Play();
|
sampleReadyCount.Play();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private void updateButtonColour(bool green)
|
private void updateButtonColour(bool green)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user