private void SetOptions(string[] options, EnemyContainerManager.EnemyType type) { Dropdown[] childs = GetComponentsInChildren <Dropdown>(true); EnemyTypeSelecter = childs[0]; EnemyTypeSelecter.ClearOptions(); EnemyTypeSelecter.AddOptions(options.ToList()); EnemyTypeSelecter.value = (int)type; }
public void Init(int id, string[] options, EnemyContainerManager.EnemyType type) { Id = id; SetOptions(options, type); }