aboutsummaryrefslogtreecommitdiff
path: root/td/Assets/Scripts/EnemySpawner.cs
diff options
context:
space:
mode:
Diffstat (limited to 'td/Assets/Scripts/EnemySpawner.cs')
-rw-r--r--td/Assets/Scripts/EnemySpawner.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/td/Assets/Scripts/EnemySpawner.cs b/td/Assets/Scripts/EnemySpawner.cs
index 5b0249d..a1a6b1f 100644
--- a/td/Assets/Scripts/EnemySpawner.cs
+++ b/td/Assets/Scripts/EnemySpawner.cs
@@ -28,6 +28,7 @@ public class EnemySpawner : MonoBehaviour {
}
void Update () {
+ if (Player.GameIsPaused()) { return; } // This ensures that the game stays paused
_n++;
if (_n == _next) {