void Awake() { values = PlayerPrefs.GetString("SHARE").Split(','); for (var i = 0; i < values.Length; i++) { SmallCard card = Instantiate(smallCard).GetComponent <SmallCard>(); card.transform.parent = horizontalLayout.transform; card.SetText(values[i]); card.SetReadonly(true); } }
void Awake() { button.interactable = false; values = PlayerPrefs.GetString("VALUES").Split(','); for (var i = 0; i < values.Length; i++) { SmallCard card = Instantiate(smallCard).GetComponent <SmallCard>(); card.transform.parent = gridLayout.transform; card.SetText(values[i]); card.ClickCallback = ClickCallback; } PlayerPrefs.DeleteKey("SHARE"); }