initFrom method
Called when this behaviour should be initialized from an old behaviour.
Implementation
@override
void initFrom(Behaviour oldBehaviour) {
super.initFrom(oldBehaviour);
if (oldBehaviour is RandomParticleBehaviour || particles == null) return;
for (Particle particle in particles!) {
initParticle(particle);
}
}