using TMPro;
using UnityEngine;
using UnityEngine.UI;

namespace eagle {
    public class AvailableHeroTableRow : TableRowController {
        public RawImage professionImage;
        public TMP_Text heroName;

        public Texture ProfessionImage {
            set {
                professionImage.texture = value;
                if (value == null) { professionImage.color = Color.clear; }
            }
        }

        public string HeroName { set => heroName.text = value; }
    }
}