Exemplo n.º 1
0
    public void GetEnemySpawn()
    {
        switch (enemy)
        {
        case EnemyType.BEE:
            SpawnEnemy(PoolingManager.GetBee());
            break;

        case EnemyType.CHICKEN:
            SpawnEnemy(PoolingManager.GetChiken());
            break;

        case EnemyType.SNAKE:
            SpawnEnemy(PoolingManager.GetSnake());
            break;

        case EnemyType.SCORPION:
            SpawnEnemy(PoolingManager.GetScorpion());
            break;

        case EnemyType.GHOST:
            SpawnEnemy(PoolingManager.GetGhost());
            break;
        }
    }