From d77cd51742cb760f5f2e8f5f3c283e311ffffe1c Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Fri, 13 Oct 2017 22:11:33 +0200 Subject: Added new method for pausing the game --- td/Assets/Scripts/waveSpawner.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'td/Assets/Scripts/waveSpawner.cs') diff --git a/td/Assets/Scripts/waveSpawner.cs b/td/Assets/Scripts/waveSpawner.cs index f79fb90..1d361ef 100644 --- a/td/Assets/Scripts/waveSpawner.cs +++ b/td/Assets/Scripts/waveSpawner.cs @@ -21,8 +21,7 @@ public class WaveSpawner : MonoBehaviour { void Update () { - if (EnemiesAlive > 0) - { + if (EnemiesAlive > 0) { return; } -- cgit v1.2.3