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; } }
void Start() { led = ControlPlane.Get().Leds[Index]; image = GetComponent <Image>(); }