public virtual void Update() { if (NumberSliderLabelGenerators["left"] != null) { var leftLabel = SliderContainer.FindChildGameObject("UIMessageBoxNumberSliderLabelLeft"); leftLabel.GetComponent <Text>().text = NumberSliderLabelGenerators["left"](); } if (NumberSliderLabelGenerators["right"] != null) { var rightLabel = SliderContainer.FindChildGameObject("UIMessageBoxNumberSliderLabelRight"); rightLabel.GetComponent <Text>().text = NumberSliderLabelGenerators["right"](); } }
private void Start() { SliderContainer.FindChildGameObject("UIMessageBoxNumberSlider").GetComponent <Slider>().value = ((Clock)((SPClock)TriggerTarget).LogicComponent).Period; }