// Use this for initialization void Start () { if (!spawned) { spawned = true; currentLevel = new Level (0); currentLevel.SetRoomList(new Dictionary<int,Room> ()); DontDestroyOnLoad (this); } else { DestroyImmediate (this); } }