public void UpdateUIData(PlayerInfoDto playerInfo) { if (playerInfo != null) { userPanelGold.text = NumberConvert.ConvertW(playerInfo.gold); userPanelRank.text = NumberConvert.GetTitle(playerInfo.gold); userPanelDiamond.text = playerInfo.diamond.ToString(); if (playerInfo.useAutoId > 0) { PlayerCache.loginInfo.useAutoId = playerInfo.useAutoId; currentCar.sprite = GameTools.Instance.GetSpite("Sprite/Shop/car/" + playerInfo.useAutoId); currentCar.gameObject.SetActive(true); } else { currentCar.gameObject.SetActive(false); } //头像显示 LoadHeadImgUtils.Instance.LoadHeadImg(userHeadimg, playerInfo.headImgUrl); userName.text = playerInfo.userName; //判断是不是靓号 if (false) { advanceTxt.gameObject.SetActive(true); generalTxt.gameObject.SetActive(false); advanceTxt.text = playerInfo.uid.ToString(); } else { advanceTxt.gameObject.SetActive(false); generalTxt.gameObject.SetActive(true); generalTxt.text = playerInfo.uid.ToString(); } userSex.text = PlayerCache.loginInfo.sex; userPanelRank.text = NumberConvert.GetTitle(playerInfo.gold); userPanelGold.text = NumberConvert.ConvertW(playerInfo.gold); userPanelDiamond.text = playerInfo.diamond.ToString(); userPanelCharm.text = playerInfo.charm.ToString(); StartCoroutine(GetLocatioin(addressTxt)); if (playerInfo.vipLv > 0) { //显示vip等级 vipImg.sprite = GameTools.Instance.GetSpriteAtlas("Sprite/Vip/VipAtlas1", "vip_level_big_icon_" + playerInfo.vipLv); vipImg.gameObject.SetActive(true); } else { vipImg.gameObject.SetActive(false); } } }
public void UpdateUI() { PlayerInfoDto info = PlayerCache.hallPlayerInfoOperation.playerInfo(PlayerCache.CurrentOtherPlayerUID); // DebugUtils.DebugerExtension.Log(this, PlayerCache.CurrentOtherPlayerUID); if (info != null) { if (info != null) { userPanelGold.text = info.gold.ToString(); userPanelDiamond.text = info.diamond.ToString(); //头像显示 LoadHeadImgUtils.Instance.LoadHeadImg(userHeadimg, info.headImgUrl); userPanelName.text = info.userName; //判断是不是靓号 if (false) { advanceTxt.gameObject.SetActive(true); generalTxt.gameObject.SetActive(false); advanceTxt.text = info.uid.ToString(); } else { advanceTxt.gameObject.SetActive(false); generalTxt.gameObject.SetActive(true); generalTxt.text = info.uid.ToString(); } // userPanelSex.text = info.; userPanelRank.text = NumberConvert.GetTitle(info.gold); userPanelGold.text = NumberConvert.ConvertW(info.gold); userPanelDiamond.text = info.diamond.ToString(); userPanelCharm.text = info.charm.ToString(); ILMgr.Instance.StartCoroutine(GetLocation(userAddressTxt, info.ip)); userPanelSignAture.text = info.sigin; contactTxt.text = info.contactWay; if (info.vipLv > 0) { //显示vip等级 vipImg.sprite = GameTools.Instance.GetSpriteAtlas("Sprite/Vip/VipAtlas1", "vip_level_big_icon_" + info.vipLv); vipImg.gameObject.SetActive(true); } else { vipImg.gameObject.SetActive(false); } if (info.useAutoId > 0) { currentCar.sprite = GameTools.Instance.GetSpite("Sprite/Shop/car/" + info.useAutoId); currentCar.gameObject.SetActive(true); } else { currentCar.gameObject.SetActive(false); } } } }