mirror of
https://github.com/ppy/osu
synced 2025-02-19 11:56:58 +00:00
Replace nested loop with early return
This commit is contained in:
parent
af8f727721
commit
474f245222
@ -67,13 +67,13 @@ namespace osu.Game.Rulesets.Mania.Skinning
|
||||
|
||||
public void Animate(JudgementResult result)
|
||||
{
|
||||
if (!(result.Judgement is HoldNoteTickJudgement))
|
||||
{
|
||||
(explosion as IFramedAnimation)?.GotoFrame(0);
|
||||
if (result.Judgement is HoldNoteTickJudgement)
|
||||
return;
|
||||
|
||||
explosion?.FadeInFromZero(80)
|
||||
.Then().FadeOut(120);
|
||||
}
|
||||
(explosion as IFramedAnimation)?.GotoFrame(0);
|
||||
|
||||
explosion?.FadeInFromZero(80)
|
||||
.Then().FadeOut(120);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user