Use bindable for HealthDisplay.

This commit is contained in:
Dean Herbert
2017-01-18 13:40:13 +08:00
parent 8c7bb4990c
commit cd149f04fc
2 changed files with 6 additions and 5 deletions

View File

@ -63,7 +63,7 @@ namespace osu.Game.Modes.UI
processor.TotalScore.ValueChanged += delegate { ScoreCounter?.Set((ulong)processor.TotalScore.Value); };
processor.Accuracy.ValueChanged += delegate { AccuracyCounter?.Set((float)processor.Accuracy.Value); };
processor.Combo.ValueChanged += delegate { ComboCounter?.Set((ulong)processor.Combo.Value); };
processor.Health.ValueChanged += delegate { HealthDisplay?.Set(processor.Health.Value); };
if (HealthDisplay != null) processor.Health.Weld(HealthDisplay.Current);
}
}
}