private void RegisterNextWagon() { UnregisterCurrentWagon(); if (wagons.Count > 0) { currentWagon = wagons.Dequeue(); currentWagon.DpsGoalReached += CurrentWagon_DpsGoalReached; currentWagon.ItemCreated += CurrentWagon_ItemCreated; foreach (var bandos in currentWagon.GetComponentsInChildren <Wall>().Where(w => w.IsBandos)) { bandos.SetGunEnabled(true); } } else { StartCoroutine(Fin()); } }