Esempio n. 1
0
    // Use this for initialization
    void Awake()
    {
        FileUtils.FileList block = new FileUtils.FileList();

        block = loadFileList("LevelGeneration/");

        for (int x = 0; x < tileGroupsNumber; ++x)
        {
            List <char> layout;

            if (genStyle == GenerationStyle.Random)
            {
                layout = block.getOneRandom();
            }
            else             //if(genStyle == GenerationStyle.InOrder)
            {
                layout = block.getNextOne();
            }

            int xStart = (int)(bottomLeftXPos + x * tileWidth * xTilePerSection);
            createSection(layout, xStart, (int)bottomLeftYPos);
        }
    }