public void RetryLevel()
    {
        IsGameOver = false;
        AdPanel.SetActive(false);
        //ScorePanel.SetActive(false);
        player.Reset();
        poolYard.ResetPools();

        if (Waves)
        {
            StartEndlessWaves();
        }
        else
        {
            StartLevel(0);
        }
    }