Пример #1
0
        private void Start()
        {
            _dropdown  = GetComponent <Dropdown>();
            _actionMap = new Dictionary <int, TerrainFeatureAction>();
            var manager = FeatureManager.GetInstance();

            _terrainFeatures       = manager.LoadTerrainFeatures().ToList();
            _dropdown.interactable = false;
            _dropdown.onValueChanged.AddListener(OnValueChanged);
        }
Пример #2
0
        private void Start()
        {
            if (_dropdown == null)
            {
                _dropdown = GetComponent <Dropdown>();
            }

            var manager = FeatureManager.GetInstance();

            _effects = manager.LoadWeatherEffects().ToList();

            foreach (var weatherEffect in _effects)
            {
                _dropdown.options.Add(new Dropdown.OptionData(weatherEffect.objectName));
            }
            _dropdown.onValueChanged.AddListener(OnValueChanged);
            _dropdown.value = 1;
        }
 public BiomeCreationActionFilter()
 {
     _actions    = FeatureManager.GetInstance().LoadBiomes().ToList();
     _actionsMap = new Dictionary <int, BiomeCreationAction>();
 }