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(); } }
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); } }