示例#1
0
    void Start()
    {
        image     = GetComponent <Image>();
        knobImage = transform.GetChild(0).gameObject.GetComponent <Image>();

        ControlPlane control = ControlPlane.Get();

        input = control.DigitalInputs[InputIndex];

        if (LedIndex >= 0)
        {
            led = control.Leds[LedIndex];
        }
        else
        {
            knobImage.color = LedOffColor;
        }
    }
示例#2
0
 void Start()
 {
     led   = ControlPlane.Get().Leds[Index];
     image = GetComponent <Image>();
 }