Exemplo n.º 1
0
 public void RewardedAdFinished(bool hasFinished, int type)
 {
     if (type == 1) //One more chance
     {
         if (hasFinished)
         {
             startTime += Time.realtimeSinceStartup - pauseTime;
             playerCont.OneMoreChance();
             cameraCont.OneMoreChance();
             UICont.OneMoreChance();
             audioCont.OneMoreChance();
             oneMoreChance = true;
         }
         else
         {
             Time.timeScale = 1;
         }
     }
     else if (type == 2) //New challenge
     {
         challengeCont.AdCompleted(hasFinished);
     }
     else if (type == 3 && hasFinished) //Double stars
     {
         shopCont.DoubleReward();
     }
     if (hasFinished)
     {
         adCounter = 0;
         adLimit   = 5;
     }
 }