public void LoadNewPuzzle()
    {
        thisPuzzle = new ClassPuzzle();
        Debug.Log(thisPuzzle.currentPuzzle);

        if (thisPuzzle.currentPuzzle == "EscapeRoom")
        {
            EscapeRoom();
        }

        if (thisPuzzle.currentPuzzle == "Maze")
        {
            Maze();
        }

        if (thisPuzzle.currentPuzzle == "PushObject")
        {
            PushObject();
        }
    }
 void Start()
 {
     thisPuzzle = new ClassPuzzle("MainScene");
     for (int i = 0; i < thisPuzzle.totalPuzzleRooms; i++)
     {
         float x = 6;
         float y = 7;
         int   random;
         random = Random.Range(1, 3);
         if (random == 1)
         {
             Instantiate(door, new Vector2(Random.Range(-x, y), 4), Quaternion.identity);
         }
         if (random == 2)
         {
             Instantiate(door, new Vector2(Random.Range(x, -y), -4), Quaternion.identity);
         }
     }
     centralRoom = thisPuzzle;
 }