Hello, I am having an issue with my Player Ship getting stuck in the middle of the screen when testing the game.
The course I am doing is Complete C# Unity Game Developer 2D and I am having the issue after following the instructors lesson in course 114. Boundaries.
I followed the code shown and have double checked it. After setting up the min and max bounds to the main camera the ship is bound to the center of the screen and is reset to it after any movement input is made. Commenting this part of the code out allows the ship to move as expected.
I could just make my own colliders to stop the ship leaving the cameras view but this isn’t what’s expected and may cause issues later on in the course.
I’m unsure where I have gone wrong, can anyone help me with this issue?
Thank you.