public void ZombiePlace() { int rand = randGen.Next(1, 3); if (rand == 1) { zombie zombie1 = new zombie(zombieSize, 800, laneOneHeight, health); zombieList.Add(zombie1); } if (rand == 2) { zombie zombie2 = new zombie(zombieSize, 800, laneTwoHeight, health); zombieList.Add(zombie2); } }
public void ZombiePlace() { //randomizes which lane the zombie will spawn in int rand = randGen.Next(1, 3); if (rand == 1) { zombie zombie1 = new zombie(zombieSize, 800, laneOneHeight, health); zombieList.Add(zombie1); } if (rand == 2) { zombie zombie2 = new zombie(zombieSize, 800, laneTwoHeight, health); zombieList.Add(zombie2); } }