void Update() { correct = playerCollision.correct; //when triggered fills an array of bridges and an array of all letter grid pieces if (LoadQuestion.trigger) { Colliders.trig = true; LoadQuestion.trigger = false; fillTextArray(); Bridges = GameObject.FindGameObjectsWithTag("Bridge"); } //when the player asnwers correctly the bridge appears, the board turns blank and the next question is loaded if (playerCollision.correct == true /*|| Input.GetKeyDown("space")*/) { playerCollision.correct = false; rend = Bridges[bridgeCount].GetComponent <Renderer>(); Colliders.RemoveCollider(bridgeCount); rend.enabled = true; StopColliders(); bridgeCount++; corrAns++; questionLevel++; Load.GetQuestion(questionLevel); answerLocation(); } }