This commit is contained in:
2026-06-27 02:08:23 +08:00
parent 7874f43f6f
commit dc03bf59cb
11 changed files with 585 additions and 44 deletions
@@ -1,4 +1,4 @@
using Assets.MyGame.Scripts.Net.WebResponses.ChineseChess;
using Assets.MyGame.Scripts.Net.WebResponses.ChineseChess;
using System.Collections;
using System.Collections.Generic;
using TMPro;
@@ -47,22 +47,14 @@ public class UIChineseChessWin : SubUIBase
if (item.userId == GameManager.Instance.user.BaseInfo.number)
{
//--top
StartCoroutine(item.DownTexture2d((t2d) =>
{
avatar_Top.sprite = Sprite.Create(t2d, new Rect(0, 0, t2d.width, t2d.height), new Vector2(0.5f, 0.5f));
}));
ChineseChessMainPanel.LoadAvatar(avatar_Top, item.userAvatar);
tMP_ID_Top.text = item.userId;
tMP_Name_Top.text = item.userName;
}
else
{
//--top
StartCoroutine(item.DownTexture2d((t2d) =>
{
avatar_Bottom.sprite = Sprite.Create(t2d, new Rect(0, 0, t2d.width, t2d.height), new Vector2(0.5f, 0.5f));
}));
//--bottom
ChineseChessMainPanel.LoadAvatar(avatar_Bottom, item.userAvatar);
tMP_ID_Bottom.text = item.userId;
tMP_Name_Bottom.text = item.userName;
}