diff options
| author | aldrikboy <aldrikboy@gmail.com> | 2018-01-24 18:19:47 +0100 |
|---|---|---|
| committer | aldrikboy <aldrikboy@gmail.com> | 2018-01-24 18:19:47 +0100 |
| commit | 99c4ae188b672718af274db915b314358c0862af (patch) | |
| tree | 0bbc1434b3d4bc584572b90514275b916a853b50 /Penguloon/Levels | |
| parent | 60c98112386f41cfd16e842546b1b23a1194dae0 (diff) | |
ads
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++) { |
