Fix health not being calculated in osu! mode (regression).

This commit is contained in:
Dean Herbert 2017-04-12 00:05:21 +09:00
parent f64af9bce3
commit a1aed44f10
1 changed files with 13 additions and 0 deletions

View File

@ -30,6 +30,19 @@ protected override void Reset()
protected override void OnNewJudgement(OsuJudgement judgement)
{
if (judgement != null)
{
switch (judgement.Result)
{
case HitResult.Hit:
Health.Value += 0.1f;
break;
case HitResult.Miss:
Health.Value -= 0.2f;
break;
}
}
int score = 0;
int maxScore = 0;