예제 #1
0
 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;
 }
예제 #2
0
        public void Init(int id, string[] options, EnemyContainerManager.EnemyType type)
        {
            Id = id;

            SetOptions(options, type);
        }