Here is my Greeting and Text for Number Wizard
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NumberWizard : MonoBehaviour
{
int max = 1000;
int min = 1;
int guess = 500;
// Start is called before the first frame update
void Start()
{
//Debug gives more Flex than print
Debug.Log("Would you Llike to play a Game?");
Debug.Log("Pick a number,");
Debug.Log("between " + min);
Debug.Log("and " + max );
Debug.Log("and don't tell me what it is.");
Debug.Log("Tell me if your Number is higher or lower than" + guess);
Debug.Log("Push ↑ up = Higher, Push ↓ = Lower, Push Enter = Correct");
//Stupid unity bug wont give true max
max = max + 1;
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.UpArrow))
{
Debug.Log("Up Arrow key was pressed.");
min = guess;
guess = (max + min) / 2;
Debug.Log(guess);
}
else if(Input.GetKeyDown(KeyCode.DownArrow))
{
Debug.Log("Down Arrow key was pressed.");
max = guess;
guess = (max + min) / 2;
Debug.Log(guess);
}
else if (Input.GetKeyDown(KeyCode.Return))
{
Debug.Log("Enter was Pressed");
}
}