Bind every HealthDisplay on Player load

This commit is contained in:
Lucas A
2020-03-17 22:57:47 +01:00
parent 6b0c5bc65d
commit ed4f9f8ba9
4 changed files with 19 additions and 0 deletions

View File

@ -3,6 +3,7 @@
using osu.Framework.Bindables;
using osu.Framework.Graphics.Containers;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Screens.Play.HUD
{
@ -13,5 +14,10 @@ namespace osu.Game.Screens.Play.HUD
MinValue = 0,
MaxValue = 1
};
public virtual void BindHealthProcessor(HealthProcessor processor)
{
Current.BindTo(processor.Health);
}
}
}