1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user