unity How do I get a value from a slider as a variable code example Example: how to set value of slider in unity slider.value = newValue