public void TogglePauseMenu()
    {
        backdrop.SetActive(!backdrop.activeSelf);
        buttonsParent.SetActive(!buttonsParent.activeSelf);

        PlayButtonClickSound();

        if (backdrop.activeSelf)
        {
            defenderSpawner.ClearSelectedSquad();
            defenderSpawner.ClearSelectedStructure();

            textPopupsObjectPoolParent.SetActive(false);
            gamePaused     = true;
            Time.timeScale = 0;
        }
        else
        {
            textPopupsObjectPoolParent.SetActive(true);
            gamePaused     = false;
            Time.timeScale = 1;
        }
    }