示例#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);
        }