Пример #1
0
        void _RCIValueSlider_eventValueChanged(UIComponent component, float value)
        {
            FeatureUtil.SetRCIValue(_type, (int)value);

#if DEBUG
            Debug.Log(_type.ToString() + "------" + value.ToString());
#endif
        }
Пример #2
0
        public override void Update()
        {
            base.Update();

            if (_RCIFixed.IsChecked)
            {
                FeatureUtil.SetRCIValue(_type, currentSliderValue);
            }


            _RCIValueSlider.value = FeatureUtil.GetCurrentRCIValue(_type);
            currentSliderValue    = FeatureUtil.GetCurrentRCIValue(_type);

            if (ConfigManager.Instance.CurrentConfig.storeDemand)
            {
                ConfigManager.Instance.SetStoreDemandValue(_type, currentSliderValue);
            }
        }