void Update() { // Get the number of enemies in place on the current Formation //enemiesInPlace = isEnemyInPlace(); //+ " - enemies in place: " + enemiesInPlace.ToString().Colored(Colors.red if (gameObject.name == "Round1Phase1EnemyFormation") { Debug.Log(gameObject.name.Bold() + " Just Spawned: " + GalagaHelper.JustSpawned + " Enemies Spawned: " + GalagaHelper.EnemiesSpawned + " Enemies Killed: " + GalagaHelper.EnemiesKilled + " Enemies Disabled: " + GalagaHelper.DisabledEnemies + " PlayerLifes: " + GalagaHelper.numOfPlayers); // Check if 8 enemies have spawned then run them GalagaHelper.StartRound1(); if (GalagaHelper.EnemiesKilled >= GalagaHelper.JustSpawned && GalagaHelper.JustSpawned != 0) { Debug.Log("Round2 started".Bold().Sized(11)); // Reset Variables GalagaHelper.ResetFormations(); GalagaHelper.CurrentRoundPhase = GalagaHelper.Formations.Round1Phase1; GalagaHelper.RoundNumber += 1; MainEnemyFormation main = GameObject.FindGameObjectWithTag("MainFormation").GetComponent <MainEnemyFormation>(); main.RestartRound(); GalagaHelper.EnemiesKilled = 0; GalagaHelper.JustSpawned = 0; GalagaHelper.EnemiesSpawned = 0; GalagaHelper.DisabledEnemies = 0; GalagaHelper.isWaveOneStarted = false; SpawnUntilFull(); } } }