protected override void SkinChanged(ISkinSource skin, bool allowFallback) { base.SkinChanged(skin, allowFallback); skinnedCounter = Drawable as IHealthDisplay; skinnedCounter?.Current.BindTo(Current); }
public void Construct() { playerData = PlayerManagement.PlayerData; healthDisplay = healthDisplayHolder.GetComponentInChildren <IHealthDisplay>(); deathActions = deathActionsHolder.GetComponentsInChildren <IDeathAction>(); Hitpoints = startingHealthPercentage * maxHealth; SetMaxHealth(playerData.maxHealth); }