Esempio n. 1
0
    public void FullRedraw()
    {
        BoundsInt bounds = new BoundsInt(this.bounds.x, this.bounds.y, 0, this.bounds.width, this.bounds.height, 1);

        int[]      tileInts = model.Traverse().Select(tile => (int)tile).ToArray();
        TileBase[] tiles    = model.Traverse().Select(tile => palette[(int)tile]).ToArray();
        level.SetTilesBlock(bounds, tiles);
    }