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(); }
void Awake() { Icons = Instantiate(ListIconsPrefab).GetComponent <ListIcons>(); }