void Start() { shapes = new List <GameObject>(); mathWindow = GameObject.Find("Math Window"); emailWindow = GameObject.Find("Email Window"); stockWindow = GameObject.Find("Stock Window"); increased = false; if (experiment == 1) { timeLimit = exp1TimeLimit; } else { timeLimit = exp2TimeLimit; } // Write the string to a file. file = new System.IO.StreamWriter(Application.dataPath + "/ExperimentData/test.txt"); canvasObj = GameObject.Find("Canvas"); //get canvas object if (experiment == 1) { canvasObj.SetActive(false); } //canvas = tickerTextObj.GetComponent<Text>(); stockTickerScript = GameObject.Find("Stock Ticker").GetComponent <StockTickerFunctions>(); mathBoxScript = GameObject.Find("MathBox").GetComponent <MathBoxFunctions>(); emailBoxScript = GameObject.Find("Email Box").GetComponent <EmailBoxFunctions>(); stockPanelImage = GameObject.Find("Title Panel Stock").GetComponent <Image>(); mathPanelImage = GameObject.Find("Title Panel Math").GetComponent <Image>(); emailPanelImage = GameObject.Find("Title Panel Email").GetComponent <Image>(); }
void Start() { shapes= new List<GameObject>(); mathWindow = GameObject.Find ("Math Window"); emailWindow = GameObject.Find ("Email Window"); stockWindow = GameObject.Find ("Stock Window"); increased = false; if (experiment == 1) timeLimit = exp1TimeLimit; else timeLimit = exp2TimeLimit; // Write the string to a file. file = new System.IO.StreamWriter(Application.dataPath + "/ExperimentData/test.txt"); canvasObj = GameObject.Find ("Canvas"); //get canvas object if (experiment == 1) canvasObj.SetActive(false); //canvas = tickerTextObj.GetComponent<Text>(); stockTickerScript = GameObject.Find ("Stock Ticker").GetComponent <StockTickerFunctions>(); mathBoxScript = GameObject.Find ("MathBox").GetComponent <MathBoxFunctions>(); emailBoxScript = GameObject.Find ("Email Box").GetComponent <EmailBoxFunctions>(); stockPanelImage = GameObject.Find("Title Panel Stock").GetComponent<Image>(); mathPanelImage = GameObject.Find("Title Panel Math").GetComponent<Image>(); emailPanelImage = GameObject.Find("Title Panel Email").GetComponent<Image>(); }