Singleton implementation

I used to have my Singleton(GameManager, SoundManager…) attached to sperate game objects. I was wondering if I can have them attached to one and only one game object instead. And only wrote “DontDestroyOnLoad” in one of the Singleton.

As far as I know you can’t do that. You can tho destroy each but one instance of the script it it happens to be on the scene.

public static T Instance;

private void Awake()
{
	if(Instance == null
		Instance = this;
	else
		Destroy(this);
}