summaryrefslogtreecommitdiff
path: root/Penguloon/AdManager.cs
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2018-01-25 11:06:32 +0100
committeraldrikboy <aldrikboy@gmail.com>2018-01-25 11:06:32 +0100
commit60f1bddda04ec5fa22778abf176171a547dde949 (patch)
tree558473316ae408fdc3c43c1160489f158c1f7843 /Penguloon/AdManager.cs
parent99c4ae188b672718af274db915b314358c0862af (diff)
inapp billing
Diffstat (limited to 'Penguloon/AdManager.cs')
-rw-r--r--Penguloon/AdManager.cs6
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();