slider preferb unity code example
Example 1: how to set value of slider in unity
slider.value = newValue
Example 2: player not following slide object unity 2d
Make Player as a child of collided object. Watch this video : https://www.youtube.com/watch?v=O6wlIqe2lTA&ab_channel=JasonWeimann