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); }
void OnIKBoneLengthChanged(float v, SliderWrapper slider) { }