Esempio n. 1
0
 public override void Execute()
 {
     if (AdEnabled)
     {
         interstitialsDisplayModel.TryShowAd(AdPlacement);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Call this method when user press new level button or select new level other way <para />
 /// This method will try to show ad and execute it's action regardless of the result. <para />
 /// Provide method that will switch level as parameter.
 /// </summary>
 public void NewLevel(UnityAction startNewLevelAction)
 {
     interstitialsDisplayModel.TryShowAd(AdPlacement.Restart, () => StartNewLevel(startNewLevelAction));
 }