init method
Implementation
void init(MovingBackground data){
child=data.child;
backgroundColor=data.backgroundColor;
animationType=data.animationType;
duration=data.duration;
}
void init(MovingBackground data){
child=data.child;
backgroundColor=data.backgroundColor;
animationType=data.animationType;
duration=data.duration;
}