Пример #1
0
 public void reload()
 {
     for (int i = 0; i < userData.cards.Count; i++)
     {
         UserPreviewCard preV = preViewList[i].GetComponent <UserPreviewCard>();
         preV.setData(userData.cards[i], isMy());
         preV.reload();
     }
 }
Пример #2
0
    public void setData(UserGameData data)
    {
        userData      = data;
        nickName.text = userData.nickName;

        for (int i = 0; i < userData.cards.Count; i++)
        {
            UserPreviewCard preV = preViewList[i].GetComponent <UserPreviewCard>();
            preV.setData(userData.cards[i], isMy());
        }

        if (data.isLose == false)
        {
            spriteLoseBg.gameObject.SetActive(false);
            labelLose.gameObject.SetActive(false);
        }
    }