private Text text;
private LyricList lineList = new LyricList();
private InputField inputField;
private string newState;
// Use this for initialization
void Start () {
// Get the text child object from the Canvas
text = gameObject.GetComponentInChildren<Text> ();
// Get the input field child object from the Canvas
inputField = gameObject.GetComponentInChildren<InputField> ();
//CreateAssetMenuAttribute our Lyric List
lineList.CreateList ();
text.text = "Please reassemble the song lyrics!
" + instructions + "
Start guessing to begin!
";
}
Here is a snippet of my code. I am receiving an error on the text.text line saying “Object reference not set to an instance of an object.” Any help would be appreciated.