// Start is called before the first frame update void Start() { ZombieWaveSpawnerState beinngerWave = new ZombieWaveSpawnerState(this, StateMachine) { ZombiesToSpawn = 5, NextState = SpawnerStateEnum.Complete }; StateMachine.AddState(SpawnerStateEnum.Beginner, beinngerWave); StateMachine.Initialize(SpawnerStateEnum.Beginner); }
// Start is called before the first frame update void Start() { ZombieWaveSpawnerState beginnerWave = new ZombieWaveSpawnerState(this, StateMachine) { ZombiesToSpawn = 5, NextState = SpawnerStateEnum.Complete }; StateMachine.AddState(SpawnerStateEnum.Beginner, beginnerWave); StateMachine.Initialize(SpawnerStateEnum.Beginner); //for (int zombieCount = 0; zombieCount < NumberOfZombieToSpawn; zombieCount++) //{ // SpawnZombie(); //} }