Exemple #1
0
        protected override void SkinChanged(ISkinSource skin, bool allowFallback)
        {
            base.SkinChanged(skin, allowFallback);

            skinnedCounter = Drawable as IHealthDisplay;
            skinnedCounter?.Current.BindTo(Current);
        }
Exemple #2
0
 public void Construct()
 {
     playerData    = PlayerManagement.PlayerData;
     healthDisplay = healthDisplayHolder.GetComponentInChildren <IHealthDisplay>();
     deathActions  = deathActionsHolder.GetComponentsInChildren <IDeathAction>();
     Hitpoints     = startingHealthPercentage * maxHealth;
     SetMaxHealth(playerData.maxHealth);
 }