initFrom method
Called when this behaviour should be initialized from an old behaviour.
Implementation
@override
void initFrom(Behaviour oldBehaviour) {
if (oldBehaviour is RacingLinesBehaviour) {
lines = oldBehaviour.lines;
numLines = this._numLines; // causes the lines to update
}
}