void Update () {
slider.wholeNumbers = true;
}
public void Test(){
WeaponsIndex = slider.value;
}
This is where my problem is residing in my code. I’m getting a
Cannot implicitly convert type float' to
int’. An explicit conversion exists (are you missing a cast?)
No matter what I do. I figured changes in the code in update that whole numbers would be true would solve it however slider.value is still a float instead of int.