1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 01:30:05 +08:00

Use HasCompleted in Player

This commit is contained in:
Salman Ahmed
2020-04-19 05:58:22 +03:00
Unverified
parent fc6c245de5
commit 7e64bec94f
+2 -2
View File
@@ -197,7 +197,7 @@ namespace osu.Game.Screens.Play
};
// Bind the judgement processors to ourselves
ScoreProcessor.AllJudged += onCompletion;
ScoreProcessor.HasCompleted.ValueChanged += updateCompletionState;
HealthProcessor.Failed += onFail;
foreach (var mod in Mods.Value.OfType<IApplicableToScoreProcessor>())
@@ -412,7 +412,7 @@ namespace osu.Game.Screens.Play
private ScheduledDelegate completionProgressDelegate;
private void onCompletion()
private void updateCompletionState(ValueChangedEvent<bool> completionState)
{
// screen may be in the exiting transition phase.
if (!this.IsCurrentScreen())