From 99c4ae188b672718af274db915b314358c0862af Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Wed, 24 Jan 2018 18:19:47 +0100 Subject: ads --- Penguloon/Levels/LevelBase.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Penguloon/Levels') diff --git a/Penguloon/Levels/LevelBase.cs b/Penguloon/Levels/LevelBase.cs index 96a1cb6..c23e72b 100644 --- a/Penguloon/Levels/LevelBase.cs +++ b/Penguloon/Levels/LevelBase.cs @@ -48,13 +48,16 @@ namespace Penguloon.Levels public LevelBase() { - + } public abstract void CreateMap(); public virtual void Initialize(GameScene sceneBase) { + // load ad + AdManager.Load(sceneBase.Main); + MoneyBase = Money; HealthBase = Health; StartDate = DateTime.Now; @@ -90,6 +93,9 @@ namespace Penguloon.Levels public void Restart() { + // load a new ad + AdManager.Load(ParentScene.Main); + NewPR = false; CreateMap(); Map.WaveManager.CurrentWave = 1; @@ -167,6 +173,8 @@ namespace Penguloon.Levels { if (ParentScene.UpgradeMenu.SellConfirmationBox.State == IngameOptionsState.Show) return; + if (ParentScene.OptionsMenu.State == IngameOptionsState.Show) return; + bool found = false; for (int i = 0; i < touchLocations.Length; i++) { -- cgit v1.2.3-70-g09d2