Ejemplo n.º 1
0
    void PassValuesToController()
    {
        numberOfWorm = Random.Range(3, 7);

        if (!adController.IsInterstitialReady())
        {
            adController.RequestInterstitialAd();
        }
        else
        {
            //show interstitial
        }
        if (!adController.IsRewardedReady())
        {
            adController.RequestRewardedAd();
        }

        wormController.SetNumberOfWorm = numberOfWorm;

        wormController.ChangeStateToReset();
        circleController.ChangeStateToReset();
    }