public void questionDisplay(QuestionGen generatedQ) { questionText = GameObject.Find("Question").GetComponent <Text>(); questionText.text = generatedQ.toString(); }
void Start() { newQ = generateQuestion(); Debug.Log(newQ.toString()); questionDisplay(newQ); }