Exemplo n.º 1
0
    private void SpawnNewObstacle()
    {
        ObstacleManager o = obstacleTypes[m_currentObstacleCycle];

        if (o.CanSpawnObstacle())
        {
            o.SpawnObstacle();
            IncrementCurrentObstacleCycle();
        }
    }