Esempio n. 1
0
 public void OnUnityAdsDidFinish(string placementId, ShowResult showResult)
 {
     if (Keys.ID.PlacementReward == placementId)
     {
         if (showResult == ShowResult.Finished)
         {
             if (_isShop)
             {
                 _coin.AddReward();
                 PlayerPrefs.SetInt(Keys.CountRewardAdvertising, PlayerPrefs.GetInt(Keys.CountRewardAdvertising) + 1);
             }
             else
             {
                 var spawn = FindObjectOfType <SpawnCubes>();
                 spawn.GetCube(_cube, _mainCube);
                 _lives.Add();
                 PlayerPrefs.SetString(Keys.ContinuedAdvertising, "True");
             }
         }
     }
 }