private void Start() { titleObj = rootObj.transform.Find("Title").gameObject; contentObj = rootObj.transform.Find("Content").gameObject; btnObj = rootObj.transform.Find("Button").gameObject; DataGatherer data = DataGatherer.Get(); textBox = data.GetTextBox(textIndex); }
// Start is called before the first frame update void Start() { titleObj = rootObj.transform.Find("Title").gameObject; contentObj = rootObj.transform.Find("Content").gameObject; btnObj = new List <GameObject>(); btnObj.Add(rootObj.transform.Find("btn1").gameObject); btnObj.Add(rootObj.transform.Find("btn2").gameObject); btnObj.Add(rootObj.transform.Find("btn3").gameObject); btnObj.Add(rootObj.transform.Find("btn4").gameObject); btnObj.Add(rootObj.transform.Find("btn5").gameObject); DataGatherer dataGatherer = DataGatherer.Get(); data = dataGatherer.GetCopyOfTrivia(); }