samedi 30 mai 2015

List elements must be randomized differently

void changeColors(){
    clr = colorList [Random.Range (0, colorList.Count)];
    txtClr = colorList [Random.Range (0, colorList.Count)];
}

This is my function to set random color to 2 variables. What i want to achieve is the function must keep working until clr != txtClr after randomizing. Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire