So I started new Unity tutorial and everything went smooth till it gave me error as above in the title when I was trying to attach my scripts to the empty game object. After trying for some time I decided to create a new project with the same Asset folder from the tutorial site and started to create new empty scripts just to see if they can be attached to the game object and it worked! But to make sure, I created a few more, with different names and suddenly the 4th script upon creation got the message “No MonoBehaviour scripts in the file, or their names don’t match the file name” and after trying to attach it to the game object it got the same error again. Moreover, every other script upon creation gets the same note and cannot be attached, but the first 3 scripts don’t have it and can be successfully added to the game object.
P.S.: Maybe you can tell me also why does the script called GameManager have different icon than the rest of the scripts?