// Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(keyToGenerateDungeonsUsingBSP))
     {
         DestroyCurrentDungeon();
         dungeonGeneratorBSP.BuildDungeon();
     }
     else if (Input.GetKeyDown(keyToGenerateDungeonsUsingDiggerAgent))
     {
         DestroyCurrentDungeon();
         dungeonGeneratorDiggerAgent.BuildDungeon();
     }
     else if (Input.GetKeyDown(keyToGenerateDungeonsUsingGraphGrammars))
     {
         DestroyCurrentDungeon();
         dungeonGeneratorGraphGrammar.BuildDungeon();
     }
     else if (Input.GetKeyDown(keyToSaveTheGeneratedDungeonAsPrefab))
     {
         SaveCurrentDungeonAsPrefab();
         #if (UNITY_EDITOR)
         UnityEditor.EditorApplication.isPlaying = false;
         #endif
     }
     else if (Input.GetKeyDown(KeyCode.Escape))
     {
         Application.Quit();
     }
 }