Beispiel #1
0
        private void Start()
        {
            luminositySlider.value = graph.GetInputFloat(luminosityParam.parameter);
            hueSlider.value        = graph.GetInputFloat(hueParam.parameter);
            saturationSlider.value = graph.GetInputFloat(saturationParam.parameter);

            luminositySlider.onValueChanged.AddListener(OnLuminosityChanged);
            hueSlider.onValueChanged.AddListener(OnHueChanged);
            saturationSlider.onValueChanged.AddListener(OnSaturationChanged);

            refreshButton.onClick.AddListener(OnRefreshClicked);

            Debug.Log(string.Format("{0} - {1}\n{2} - {3}\n{4} - {5}", luminosityParam.parameter, luminosityParam.type, hueParam.parameter, hueParam.type, saturationParam.parameter, saturationParam.type));
        }