Exemple #1
0
        internal static SliderWrapper Slider(FloatValue value, FloatValue min, FloatValue max, UnityAction <float, SliderWrapper> onSliderValueChanged)
        {
            var slider  = Obj.Instantiate(I.sliderPrefab, parent).GetComponent <Slider>();
            var wrapper = new SliderWrapper(slider, value, min, max);

            wrapper.onSliderValueChanged = onSliderValueChanged;
            slider.onValueChanged.AddListener(wrapper.OnSliderChanged);
            horizon.Add(slider);
            return(wrapper);
        }
Exemple #2
0
 void OnIKBoneLengthChanged(float v, SliderWrapper slider)
 {
 }