mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Initialize some bindables for prevent get the null instance.
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user