Unity editor goes nuts on running the game

Hi, I am developing a game and have run into a problem: When trying to test the game and pressing ‘play’ button, editor does not jump in to the game window, also play button and pause button freezes in “on” position. No errors are reported. I was still able to save the scene because main toolbar still works, but the problem reocures next time I open the project and try to run the game.

Something time consuming or infinite loop in your code must be the problem.

Has your Unity always done that? Or is this your first time using it? If so it may be that your pc can’t run Unity or that it’s not properly installed. Try reinstalling it.