summaryrefslogtreecommitdiff
path: root/Penguloon/Levels/LevelBase.cs
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2018-01-17 14:26:43 +0100
committeraldrikboy <aldrikboy@gmail.com>2018-01-17 14:26:43 +0100
commitaf0ba50d00722e1b7330d1f9b1d23bd3b07a5567 (patch)
treefbd7f63dc9bdfc4f1019c03b8f6bf7accb2dce7d /Penguloon/Levels/LevelBase.cs
parenta9daa029db68962603905eded0e29c2a2e2abd91 (diff)
upgrades
Diffstat (limited to 'Penguloon/Levels/LevelBase.cs')
-rw-r--r--Penguloon/Levels/LevelBase.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Penguloon/Levels/LevelBase.cs b/Penguloon/Levels/LevelBase.cs
index 7d67d70..a9340b2 100644
--- a/Penguloon/Levels/LevelBase.cs
+++ b/Penguloon/Levels/LevelBase.cs
@@ -85,6 +85,7 @@ namespace Penguloon.Levels
public void Restart()
{
+ NewPR = false;
CreateMap();
Map.WaveManager.CurrentWave = 1;
@@ -311,8 +312,11 @@ namespace Penguloon.Levels
}
- public void FinishGame()
+ public void FinishGame(bool exit = false)
{
+ ParentScene.OptionsMenu.State = IngameOptionsState.Hide;
+
+ if (!exit)
SoundManager.PlayGameOverSound();
Finished = true;