changeColor method
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;
}
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;
}