Everything in a trial room are present, but disabled, in the room when the dungeon is generated. So, change the spawning functionality so that everything is only spawned when a player starts the trial and not before. Also, despawn everything when the trial is complete.
Everything in a trial room are present, but disabled, in the room when the dungeon is generated. So, change the spawning functionality so that everything is only spawned when a player starts the trial and not before. Also, despawn everything when the trial is complete.