void _RCIValueSlider_eventValueChanged(UIComponent component, float value) { FeatureUtil.SetRCIValue(_type, (int)value); #if DEBUG Debug.Log(_type.ToString() + "------" + value.ToString()); #endif }
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(); }
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); } }
public override void Update() { base.Update(); _ViewNumber.text = FeatureUtil.GetCurrentRCIValue(_type).ToString(); }