Skip to content
Snippets Groups Projects
Commit a9a189d1 authored by Karlsen Adiyasa Bachtiar's avatar Karlsen Adiyasa Bachtiar
Browse files

fix initial wave level

parent da36ebed
Branches
No related merge requests found
...@@ -8,7 +8,7 @@ public class EnemyManager : MonoBehaviour ...@@ -8,7 +8,7 @@ public class EnemyManager : MonoBehaviour
public int totalWeight; public int totalWeight;
public static int remainingEnemies = 0; public static int remainingEnemies = 0;
public static int remainingWeight; public static int remainingWeight;
public static int waveLevel = 1; public static int waveLevel;
public bool isZenMode = true; public bool isZenMode = true;
[SerializeField] [SerializeField]
...@@ -24,6 +24,7 @@ public class EnemyManager : MonoBehaviour ...@@ -24,6 +24,7 @@ public class EnemyManager : MonoBehaviour
} }
else else
{ {
waveLevel = 1;
SpawnWave(); SpawnWave();
waveLevel++; waveLevel++;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment