Ejemplo n.º 1
0
    private void Start()
    {
        Icons        = Instantiate(ListIconsPrefab).GetComponent <ListIcons>();
        CurrentImage = PlayerPrefs.GetInt("Icon", 0);
        var drop = ChoosesIcon.GetComponent <Dropdown>();

        drop.AddOptions(Icons.Images.Select(p => p.name).ToList());
        drop.value = CurrentImage;
        SyncIcon();
        Close();
    }
Ejemplo n.º 2
0
 void Awake()
 {
     Icons = Instantiate(ListIconsPrefab).GetComponent <ListIcons>();
 }