addTo method
void
addTo(
- Scene scene
Puts the ground, the crowd and the fog into scene, and keeps it for the
buildings that arrive later.
Implementation
void addTo(Scene scene) {
_scene = scene;
scene.add(_ground);
for (final InstancedMeshNode batch in _batches) {
scene.add(batch);
}
for (final InstancedMeshNode batch in _props) {
scene.add(batch);
}
final MeshNode? water = _water;
if (water != null) scene.add(water);
final InstancedMeshNode? unseen = _unseen;
final InstancedMeshNode? remembered = _remembered;
if (unseen != null) scene.add(unseen);
if (remembered != null) scene.add(remembered);
}