Initialize some bindables for prevent get the null instance.

This commit is contained in:
為什麼
2022-07-10 23:16:51 +08:00
committed by andy840119
parent 1f9f2b413e
commit ce1bb206c8
4 changed files with 10 additions and 10 deletions

View File

@ -22,7 +22,7 @@ namespace osu.Game.Rulesets.Mods
private int retries;
private BindableNumber<double> health;
private readonly BindableNumber<double> health = new BindableDouble();
public override void ApplyToDifficulty(BeatmapDifficulty difficulty)
{
@ -44,7 +44,7 @@ namespace osu.Game.Rulesets.Mods
public void ApplyToHealthProcessor(HealthProcessor healthProcessor)
{
health = healthProcessor.Health.GetBoundCopy();
health.BindTo(healthProcessor.Health);
}
}
}