//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()); }
public override void TakeDamage(float dmg) { base.TakeDamage(dmg); healthText.SetText(health); }