Пример #1
0
 private void UnPaintTile( MapLayer layer, Vector2 position )
 {
     layer.SetTile( position, -1 );
 }
Пример #2
0
        private void PaintTile( MapLayer layer, Vector2 position )
        {
            if( !_layerTileMap.ContainsKey( layer ) )
                _layerTileMap.Add( layer, 0 ); // the first tile is the default

            layer.SetTile( position, _layerTileMap[ layer ] );
        }