AcornPublishing_pcg-for-unity/Procedural Content Generation for Unity Game Development_Code/Chapter 2/Loader.cs
using UnityEngine;
using System.Collections;

public class Loader : MonoBehaviour 
{
	public GameObject gameManager;			//GameManager prefab to instantiate
	
	void Awake ()
	{
		//Check if a GameManager has already been assigned to static variable GameManager.instance or if it's still null
		if (GameManager.instance == null)
			
			//Instantiate gameManager prefab
			Instantiate(gameManager);
	}
}