//changes the sprite and displays losses internal void FillIconWhenGameIsOver(CharAttributes Attributes) { //displays the sprite of the hero who participated in the battle heroImage.sprite = Attributes.heroSprite; //displays losses if (Attributes.Calculatelosses() != 0) { losses = "- " + Attributes.Calculatelosses(); } stackText.text = losses; }
// cambia el sprite y muestra pérdidas internal void FillIconWhenGameIsOver(CharAttributes Attributes) { // muestra el sprite del héroe que participó en la batalla heroImage.sprite = Attributes.heroSprite; // muestra pérdidas if (Attributes.Calculatelosses() != 0) { losses = "- " + Attributes.Calculatelosses(); } stackText.text = losses; }