修复开始游戏无法点击和UI增加
This commit is contained in:
@@ -42,6 +42,27 @@ namespace TcgEngine.UI
|
||||
RankMedalData.Load();
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
viewCardButton.onClick.AddListener(OnViewCard);
|
||||
|
||||
}
|
||||
|
||||
private async void OnViewCard()
|
||||
{
|
||||
UserData udata = null;
|
||||
udata = await ApiClient.Get().LoadUserData(id);
|
||||
if (udata.lastWinDeck.title != null)
|
||||
{
|
||||
Debug.Log($"找到{udata.lastWinDeck.title}");
|
||||
PresetDeck.Get().SetupUserCardList(udata.lastWinDeck, username);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log($"没有udata.lastWinDeck");
|
||||
}
|
||||
}
|
||||
|
||||
public void SetLine(LadderLeaderboardEntry udata, int ranking, Sprite avatar,
|
||||
int rankId, int rankScore, int stars, bool highlight)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user