public void LoadTilemapFromList(List <TileObject> tiles)
 {
     foreach (var tile in tiles)
     {
         tilemap.SetTile(tile.Position, TilemapHelper.GetTileByType(tile.Type));
     }
 }
        public void LoadPreviousTilemapFromFile()
        {
            var tiles = fileParser.LoadPreviousFile();

            foreach (var tile in tiles)
            {
                tilemap.SetTile(tile.Position, TilemapHelper.GetTileByType(tile.Type));
            }
        }