diff options
Diffstat (limited to 'Penguloon/Levels')
| -rw-r--r-- | Penguloon/Levels/LevelBase.cs | 10 |
1 files changed, 9 insertions, 1 deletions
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++) { |
