예제 #1
0
    // 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);
    }
예제 #2
0
    // 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();
        //}
    }