Can't add script behaviour ApplicationQuit because it is an editor script. To attach a script it needs to be outside the 'Editor' folder code example
Example: can't add an editor script
Unity has several reserved folder names, "Editor" is one of them
Remove the script from the "Editor" folder and you should be able
to attach it to a game object