src/game/levels/generators/TilesGenerator.js
/**
     * Disposes all level tiles to restart the level
     */
Disposes all level tiles to restart the level
Disposes all level tiles to restart the level
disposeAll() {
        let tilesBlocks = this.scene.getMeshesByTags('tilesBlock');
        for(var index = 0; index < tilesBlocks.length; index++) {
            tilesBlocks[index].dispose();
        }
    }
disposeAll ( ) { let tilesBlocks = this . scene . getMeshesByTags ( 'tilesBlock' ) ; for ( var index = 0 ; index < tilesBlocks . length ; index ++ ) { tilesBlocks [ index ] . dispose ( ) ; } }
Disposes all level tiles to restart the level
Disposes all level tiles to restart the level