public override void Execute() { if (AdEnabled) { interstitialsDisplayModel.TryShowAd(AdPlacement); } }
/// <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)); }