Right now I have this javascript for assigning a material colour, randomly, from an array or colours.
var ballColourArray = new Array("white","red","blue","green","yellow","black");
function Start () {
renderer.material.color = Color.ballColourArray(Random.Range(0,ballColourArray.length)).value;
}
But this gives an error “ballColourArray is not a member of UnityEngine.color)”.
What have I done wrong please?