public void RestartLevel()
    {
        GameManager.gameManager.restartAd++;
        if (GameManager.gameManager.restartAd == 3)
        {
            UnityAds.ads.ShowAd("video");
            GameManager.gameManager.restartAd = 0;
        }
        HideAllPanels();
        pausePanel.gameObject.SetActive(false);
        buttonsPanel.gameObject.SetActive(true);
        specialHeroSpawnButton.gameObject.SetActive(true);

        HeroSpawnManager.DestroyAssignedHeroes();
        SpecialHero.DestorySpecialHeroes();
        Enemy.DestroyAllEnemies();
        levelCompletePanel.gameObject.SetActive(false);
        GameManager.gameManager.OnRestartLevel();
        fastForwardButton.image.sprite = fastForwardImage;
        playPauseButton.image.sprite   = pauseButtonImage;
        //gameHUD.gameObject.SetActive(false);
        Camera.main.transform.position = GameManager.gameManager.cameraLocation.position;
        Camera.main.fieldOfView        = 60;
        GameManager.gameManager.StartLevel();
        SoundManager.soundManager.backgroundAudioSource.volume = 1;
        //GameManager.gameManager.introCamera.transform.gameObject.SetActive(true);
        //GameManager.gameManager.introCamera.GetComponent<Animator>().SetTrigger("Intro" + GameManager.gameManager.level);
        //GameManager.gameManager.StartLevel();
    }
    public void NextLevel()
    {
        loadingHUD.gameObject.SetActive(true);
        gameHUD.gameObject.SetActive(false);
        HeroSpawnManager.DestroyAssignedHeroes();
        SpecialHero.DestorySpecialHeroes();
        levelCompletePanel.gameObject.SetActive(false);
        levels[GameManager.gameManager.level - 1].gameObject.SetActive(false);
        specialHeroSpawnButton.gameObject.SetActive(true);
        buttonsPanel.gameObject.SetActive(true);

        menuHUD.gameObject.SetActive(true);
        SelectLevel(GameManager.gameManager.level + 1);
        SoundManager.soundManager.SwitchSound(false);
    }
 public void GoHome()
 {
     HideAllPanels();
     GameManager.gameManager.isFastForward = true;
     FastForward();
     GameManager.gameManager.menuCamera.enabled = true;
     //GameManager.gameManager.background.gameObject.SetActive(true);
     HeroSpawnManager.DestroyAssignedHeroes();
     SpecialHero.DestorySpecialHeroes();
     Enemy.DestroyAllEnemies();
     levelCompletePanel.gameObject.SetActive(false);
     pausePanel.gameObject.SetActive(false);
     buttonsPanel.gameObject.SetActive(true);
     specialHeroSpawnButton.gameObject.SetActive(true);
     GameManager.gameManager.OnGoHome();
     levels[GameManager.gameManager.level - 1].gameObject.SetActive(false);
     levelMenu.gameObject.SetActive(false);
     gameHUD.gameObject.SetActive(false);
     menuHUD.gameObject.SetActive(true);
     mainMenu.gameObject.SetActive(true);
     SetAllImages();
     SoundManager.soundManager.SwitchSound(true);
 }