示例#1
0
 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"]();
     }
 }
示例#2
0
 private void Start()
 {
     SliderContainer.FindChildGameObject("UIMessageBoxNumberSlider").GetComponent <Slider>().value = ((Clock)((SPClock)TriggerTarget).LogicComponent).Period;
 }