All the settings in the inspector are reset when I press the restart button

Hello! I have a problem, the restart button works, it restarts the whole level, but there is a problem when I hit an obstacle, I need to press the restart button and when it resets to the whole level, the settings in the inspector are also reset, respectively it shows me an error in the console that I haven’t assigned the values ​​in the inspector, this is already after I press the restart button and the scene is loaded