Question by
pezhmanpoorm · Nov 02, 2016 at 03:16 PM ·
script.scripting beginnerscriptingbasicsscriptingproblemscripterror
help for C# ; when all were green
help for my script when all were green ;write you win void Start () {
for (int SD = 0; SD < 10; SD++) {
number = Random.Range (0, 9);
print ("X:" + X);
Fez.text = number.ToString ();
//print (Fez);
} else {
Fez.text = (" ");
}}
void Update ()
{
{
if (number != Fez.color.g) {
if (Input.GetKeyDown (KeyCode.Space)) {
print (script.randomnumber);
if (script.randomnumber == number) {
Fez.color = new Color (0, 1, 0);
//Destroy( number);
// print (SD);
} else {
}
} else {
print (" YOu win");
}
}
}}
that's bug S becaUse when aren't green ; print you win
so i want to do when all are green what do l do?
Comment
Answer by pezhmanpoorm · Nov 02, 2016 at 03:17 PM
randomnumber is random number
it happen green when All Aren't green Color This is Error