public void SetRole(UserRole role, UIHeroUpgradeManager manager)
 {
     _manager   = manager;
     userRole   = role;
     IsSelected = false;
     if (userRole != null)
     {
         icon.mainTexture    = Helper.LoadTextureForHero(role.Base.RoleId);
         quality.mainTexture = Helper.LoadTextureElement((int)role.Base.ElemId);
         uistar.SetStart(role.Base.Grade);
         lblLevel.text = GameManager.localization.GetText("Global_Lvl") + role.Base.Level;
         lblName.text  = role.Name;
     }
 }
 public HeroUpgradeController(UIHeroUpgradeManager uiHeroManger)
     : base()
 {
     _uiHeroManger = uiHeroManger;
     _waitServer   = false;
 }