Beispiel #1
0
    //public void EndTheGame()//to end the game if the player did not watch an ad
    //{
    //    playerDied = true;//ball went out of the screen
    //    startFlag = false;

    //    scoreManager.SavePlayerScore();
    //    playingSceneCanves.ShowGameOverMenu();
    //    //StartCoroutine(ShowLoseFlash());//show flash light
    //    ShowLoseFlash();//show flash light
    //}

    public void AskedForAdd()               //called when the player wants to watch an add an revive
    {
        wallGenerator.PauseWallsMovement(); //to pause the generated walls movement after reviving the player untill he start playing again(after watching ad)
        adsManager = FindObjectOfType <AdManager>();
        adsManager.ShowRewardedVideo();
        startFlag = false;
    }