Esempio n. 1
0
    //Called in the update method; assigns player UI elements to their correct values
    void UpdatePlayerStats()
    {
        HealthText.SetText(this.HP.ToString());

        TavernHealthText.SetText(this.HP.ToString());

        TavernGoldText.SetText(gold.ToString());

        GoldText.SetText(gold.ToString());

        XPText.SetText(xp.ToString());
        LevelText.SetText(level.ToString());

        TurnsText.SetText(turnNumber.ToString());
    }
Esempio n. 2
0
 public override void TakeDamage(float dmg)
 {
     base.TakeDamage(dmg);
     healthText.SetText(health);
 }