Number wizard greetings, uk

Debug.Log(“Right mate welcome we are gonna play a little game.”);
Debug.Log(“Your gonna choose a number, im gonna tell you what it is.”);
Debug.Log("Now no messing around the highest number you can pick is : " + max);
Debug.Log("The Lowest : " + min);
Debug.Log(“Tell me if your number is higher then 500”);
Debug.Log(“Push up means you wanna go higher, push Down and well you get the idea you guess lower, and if im right you hit that enter button mate.”);
max = max + 1;
}

// Update is called once per frame
void Update()
{
    if (Input.GetKeyDown(KeyCode.UpArrow))
    {
        Debug.Log("Oh were going up in the world are we.");
        min = guess;
        guess = (max + min) / 2;
        Debug.Log(guess);
    }
   else if (Input.GetKeyDown(KeyCode.DownArrow))
    {
        Debug.Log("Hmm you trying to make it easy for me?.");
        max = guess;
        guess = (max + min) / 2;
        Debug.Log(guess);
    }
   else if (Input.GetKeyDown(KeyCode.Return))
    {
        Debug.Log("There we go told ya id get it right.");

Privacy & Terms