//Loads the last clicked Level from the Level Select menu.
    public void LoadSelectedLevel()
    {
        if (selectedLevel.Equals(""))
        {
            return;
        }

        levelToLoad = LevelIOManager.LoadLevel(selectedLevel, false);
        levelSelectMenu.SetActive(false);
        LevelIOManager.ConstructLevelInCanvas(levelCanvas, levelToLoad);
    }
    //Constructs a level in the provided Level prefab canvas by looking for a level of the given name.
    public static void ContructLevelInCanvasByName(GameObject levelCanvas, string levelName, bool isCustom)
    {
        Level levelToLoad = LevelIOManager.LoadLevel(levelName, isCustom);

        ConstructLevelInCanvas(levelCanvas, levelToLoad);
    }