头像闹测

This commit is contained in:
wulongxiao 2024-12-18 20:52:56 +08:00
parent 0264d1f162
commit 4a7ba77ae7
3 changed files with 6 additions and 10 deletions

View File

@ -44,9 +44,8 @@ public class HeadTanchuang : MonoBehaviour
async void UpdateShow()
{
this.Name.text = _AssetsPanel._PlayerInfoData.nickname.ToString();
this.Id.text = _AssetsPanel._PlayerInfoData.uid.ToString();
PlayerInfoData _PlayerInfoData = await Scene_main_jiekou.instance.PlayerInfos();
this.Name.text =_PlayerInfoData.nickname.ToString();
this.Id.text = _PlayerInfoData.uid.ToString();
}
}

View File

@ -25,10 +25,7 @@ public class AssetsPanel : MonoBehaviour
public Image UserHead;
public Text PersonaText;
public Text PersonID;
public PlayerInfoData _PlayerInfoData;
// Start is called before the first frame update
void Start()
{
@ -69,7 +66,7 @@ public class AssetsPanel : MonoBehaviour
async void UpdateTaxt()
{
_PlayerInfoData = await Scene_main_jiekou.instance.PlayerInfos();
PlayerInfoData _PlayerInfoData = await Scene_main_jiekou.instance.PlayerInfos();
Stone.text = _PlayerInfoData.gem.ToString();
Coin.text = _PlayerInfoData.gold.ToString();
Ore.text = _PlayerInfoData.water.ToString();

View File

@ -41,7 +41,7 @@ public class Scene_main_jiekou :MonoBehaviour
IsTaskLoging=true;
}*/
//await _Login.TastLogin();
await _Login.TastLogin();
playerInfo playerInfo=new playerInfo();
PlayerIndfo _PlayerIndfo = await playerInfo.PalyerInfo();