// Use this for initialization void Start() { _slider = GetComponent<UISlider>(); _slider.SetInputDelegate(onInput); }