Beispiel #1
0
    public void InitUser(UserRoleHire _userRoleHire, UIHireHeroManager _hireManager)
    {
        userRoleHire = _userRoleHire;
        hireManager  = _hireManager;

        quality.mainTexture = Helper.LoadTextureElement((int)userRoleHire.ElemId);
        icon.mainTexture    = Helper.LoadTextureForHero(userRoleHire.RoleId);
        starManager.SetStart(userRoleHire.Grade);
        lblName.text         = userRoleHire.Name;
        lblLevel.text        = GameManager.localization.GetText("Global_Lvl") + userRoleHire.RoleLevel;
        roleClass.spriteName = Helper.GetSpriteNameOfRoleClass((RoleClass)userRoleHire.Class);
        lblNickName.text     = userRoleHire.NickName;
    }