Пример #1
0
 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);
     }
 }
Пример #2
0
 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");
 }