/// <summary> /// 显示信息 /// </summary> /// <param name="username">玩家名称</param> /// <param name="userid">玩家id</param> /// <param name="ip">玩家ip</param> /// <param name="head"></param> public void ShowInfo(string username, string userid, string ip, YxBaseTextureAdapter head) { ShowParent.SetActive(true); UserName.text = username; UserID.text = userid; UserIP.text = ip; _userHead.mainTexture = head.GetTexture(); }
public void DetailInfo() { if (UserInfo == null) { return; } UserInfoDetail.Instance.ShowInfo ( UserInfo.name, string.Format("ID:{0}", UserInfo.id), string.Format("IP:{0}", UserInfo.ip), UserIcon.GetTexture() ); }