I use the bool value to set the slider to work, but when I set the bool to false, then switch to another bool value and reuse the slider again, both of the sliders work still listening not I switch one?
if (Bool[0]){
Sliderobj.GetComponent<Slider>().onValueChanged.AddListener((v) =>
{
Debug.log("1")
}}
if (Bool[1]){
Sliderobj.GetComponent<Slider>().onValueChanged.AddListener((v) =>
{
Debug.log("2")
}}