Question by
Darthpickle · Feb 02, 2018 at 11:20 PM ·
error messagecs8025
I'm not sure were i'm missing a curly bracket but according to mono-develop its on the line before the other }
Not sure were i'm missing a } but if anyone can find it that would be great. thanks and here's the code.
// Update is called once per frame
void Update ()
{
int max = 1000;
int min = 1;
int guess = 500;
min=guess;
guess = (max+min) /2;
if (Input.GetKeyDown(KeyCode.UpArrow)) {
//print("up arrow pressed");
print ("higer or lower than " + guess);
}else if (Input.GetKeyDown(KeyCode.DownArrow)) {
print ("down arrow pressed");
}else if (Input.GetKeyDown(KeyCode.Return)){
print("I won!!");}
}
Comment
Your answer
Follow this Question
Related Questions
Error CS1525 in Unity 5.5.1 (Urgent) 1 Answer
[Android] [Crash] Unable to Initialize Unity Engine 3 Answers
UI elements not accessible due to protection level 0 Answers
How do i get rid of this "Unexpected symbol 'void' error? 1 Answer
Android - Your device does not match the hardware requirements of this application 5 Answers