init method

void init(
  1. MovingBackground data
)

Implementation

void init(MovingBackground data){

 child=data.child;
 backgroundColor=data.backgroundColor;
 animationType=data.animationType;
 duration=data.duration;
  }