void Awake() { clockBehaviour = GameObject.Find("Clock").GetComponent<ClockBehaviour>(); onClickChange = GameObject.Find("Main Camera").GetComponent<OnClickChange>(); randomAllocation = GameObject.Find("ListController").GetComponent<RandomAllocation>(); controlLists = GameObject.Find("ListController").GetComponent<ControlLists>(); wrong = false; show = false; }
void Start() { clockBehaviour = GameObject.Find("Clock").GetComponent<ClockBehaviour>(); onClickChange = GameObject.Find("Main Camera").GetComponent<OnClickChange>(); rctQuestionLabel=new Rect(Screen.width/2-250,275,500,100); rctButtonRectOne=new Rect(Screen.width/2-100,375,50,50); rctButtonRectTwo=new Rect(Screen.width/2+50,375,50,50); rctButtonRectThree=new Rect(760,210,50,50); rctSubmitButton=new Rect(Screen.width/2-100,475,200,50); rctAnswerlabel = new Rect(Screen.width/2-250,525,500,50); strQ1Exp = "Dyslexia is not associated with IQ, but a difference between IQ and reading ability. "; strQ2Exp = "Though there is a limited understanding as to why, dyslexia is commonly reported to run in families. "; strQ3Exp = "People with dyslexia can have success in any career if the right support and accomodations are put in place. "; rctQ1label = new Rect(Screen.width/2-150,440,150,50); strA1 = "True "; rctQ2label = new Rect(Screen.width/2,440,150,50); strA2 = "False "; rctQ3label = new Rect(760,210,150,50); response = new bool[3]; checkMark=new string[3]; for(int i=0;i<checkMark.Length;i++) checkMark[i]=strUnchecked; QsComplete = new bool[3]; Invoke("PlayClip",1); Invoke("StartClock",2); orderTasksDone = new int[3]; orderAnswers1 = new int[3]; //Email: 2, Phone: 0, Report: 1. orderAnswers1[0]=2; orderAnswers1[1]=0; orderAnswers1[2]=1; orderAnswers2 =new int[3]; orderAnswers2[0]=0; orderAnswers2[1]=1; orderAnswers2[2]=2; orderAnswers3=new int[3]; orderAnswers3[0]=1; orderAnswers3[1]=2; orderAnswers3[2]=0; }