예제 #1
0
파일: LoadLevel.cs 프로젝트: flaver12/LD36
    public void loadingLevel()
    {
        int height = SimpleLevel.TextureFile.height;
        int width  = SimpleLevel.TextureFile.width;

        for (int x = 0; x < width; x++)
        {
            for (int y = 0; y < height; y++)
            {
                Color32 color = SimpleLevel.getPixelColor(x, y);
                createTile(color, new Vector3(x, 0, y));
            }
        }
    }