I have checked my code closely with the code that is being used in the video and I can’t get a text slot to show up in the NumberWizard object.
Here is my code:
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class NumberWizard : MonoBehaviour {
// Use this for initialization
int max;
int min;
int guess;
int maxGuessesAllowed = 10;
public Text text;
void Start () {
StartGame();
}
void StartGame () {
max = 1000;
min = 1;
guess = 500;
max = max + 1;
}
public void GuessLower(){
max = guess;
NextGuess ();
}
public void GuessHigher(){
min = guess;
NextGuess ();
}
public void NextGuess(){
guess = Random.Range (max, min);
text.text = guess.ToString();
maxGuessesAllowed = maxGuessesAllowed - 1:
if(maxGuessesAllowed <= 0){
Application.LoadLevel ("Win");
}
}
}
And here is what my inspector looks like:

