Unity Code Suddenly Stopped Working

So I am making a small project and was just putting comments in my code to neaten it up. When I went to do one final test for the night I saw nothing was happening, my code suddenly stopped working. I went into the and undid all the comments and looked at anything that could have happened but saw nothing that could have triggered it. Their are no errors the scene is saved.

Never mind, I set a critical variable to private which reset it. So that broke my whole script I am dum sorry.