public void ResetLevelsBeat()
    {
        int resetnum = 0;

        LevelSaveLoader.SaveLevelBeat(resetnum);
        Vector3 reset = new Vector3(0, 1, 0);

        PlayerPositionSaveLoader.SavePlayerPosition(reset);
        EventSystem es = EventSystem.current;

        ResetPanel.SetActive(false);
        MainPanel.SetActive(true);
        es.SetSelectedGameObject(null);
        es.SetSelectedGameObject(LevelSelect);
    }
    public void SaveWithoutQuit()
    {
        PlayerPositionSaveLoader.SavePlayerPosition(transform.position);
        string levelname  = SceneManager.GetActiveScene().name;
        int    levelsbeat = 0;

        if (levelname == "Level_1")
        {
            levelsbeat = 0;
        }
        else if (levelname == "Level_2")
        {
            levelsbeat = 1;
        }
        else if (levelname == "Level_3")
        {
            levelsbeat = 2;
        }
        LevelSaveLoader.SaveLevelBeat(levelsbeat);
    }