diff options
Diffstat (limited to 'Penguloon/AdManager.cs')
| -rw-r--r-- | Penguloon/AdManager.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Penguloon/AdManager.cs b/Penguloon/AdManager.cs index 65f464c..31135a5 100644 --- a/Penguloon/AdManager.cs +++ b/Penguloon/AdManager.cs @@ -24,8 +24,12 @@ namespace Penguloon public static InterstitialAd GameOverAd { get; set; } public static bool GameOverAdLoaded { get; set; } = false; + public static bool Enabled { get; set; } = false; + public static void Load(Main main) { + if (!Enabled) return; + LoadGameOverAd(main); } @@ -42,6 +46,8 @@ namespace Penguloon public static void ShowGameOverAd() { + if (!Enabled) return; + if (GameOverAdLoaded) GameOverAd.Show(); |
