Hi. I need help for my final year project. In scene view, i have moved a sprite to another position alt text

But in the play mode, it is stuck in the middle . The script that i have added to the sprite works alt text
I have no idea what went wrong. I Need help. Please. Thank You.

@Rugbug_Redfern I followed the script from the 2D catch game tutorial from unity. This script allows the blue bin to move left or right (follows the movement of the cursor). Since, im a beginner in unity, i couldn’t identify the error. Thank you.