Пример #1
0
        public override void Update()
        {
            base.Update();

            if (!ConfigManager.Instance.CurrentConfig.showDemandInBar)
            {
                return;
            }

            ResidentialDemand.text = FeatureUtil.GetCurrentRCIValue(RCIType.Residential).ToString();
            CommercialDemand.text  = FeatureUtil.GetCurrentRCIValue(RCIType.Commercial).ToString();
            IndustrialDemand.text  = FeatureUtil.GetCurrentRCIValue(RCIType.Industrial).ToString();
        }
Пример #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);
            }
        }
Пример #3
0
        public override void Update()
        {
            base.Update();

            _ViewNumber.text = FeatureUtil.GetCurrentRCIValue(_type).ToString();
        }