// Keeps track of alive zombies and if the wave is complete. internal void ZombieKill() { aliveZombieCount--; addScore(); Debug.Log("Killed a zombie, " + aliveZombieCount + " left"); if (aliveZombieCount == 0) { popUpTextScript.levelCompleteText(); Invoke("initNewLevel", 4f); } }