changeColor method

void changeColor(
  1. Color newColor
)

Implementation

void changeColor(Color newColor){
  for(int i = 0; i < mesh.length;i++){
    for(int j = 0; j < mesh[i].colors.length;j++){
      mesh[i].colors[j] = newColor;
    }
  }
  color = newColor;
}